Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected overflow with display:inline-block + margin #9308

Closed
paulrouget opened this issue Jan 14, 2016 · 1 comment
Closed

unexpected overflow with display:inline-block + margin #9308

paulrouget opened this issue Jan 14, 2016 · 1 comment

Comments

@paulrouget
Copy link
Contributor

rggdhwjnub

The following example makes the body element scrollable. The extra area is apparently directly related to the margin value.

Note: using block instead of inline-block reduces the scrollable area, but it's still possible to scroll.

<div style="left: 0px; bottom: 0px; position: absolute;">
  <div style="margin: 200px; display: inline-block; background: red">foobar</div>
</div>
pcwalton added a commit to pcwalton/servo that referenced this issue Jan 23, 2016
absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes servo#9306.
Closes servo#9309.
Is a partial fix for servo#9308.
bors-servo pushed a commit that referenced this issue Jan 23, 2016
layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes #9306.
Closes #9309.
Is a partial fix for #9308.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9405)
<!-- Reviewable:end -->
pcwalton added a commit to pcwalton/servo that referenced this issue Jan 25, 2016
absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes servo#9306.
Closes servo#9309.
Is a partial fix for servo#9308.
bors-servo pushed a commit that referenced this issue Jan 25, 2016
layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow.

This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes #9306.
Closes #9309.
Is a partial fix for #9308.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9405)
<!-- Reviewable:end -->
@pcwalton
Copy link
Contributor

Smaller test case:

<!DOCTYPE html>
hello

Shouldn't scroll.

The problem goes away if margins on the document element are set to zero.

pcwalton added a commit to pcwalton/servo that referenced this issue Jan 27, 2016
instead of expanding the block size of its border box.

Closes servo#9308.
pcwalton added a commit to pcwalton/servo that referenced this issue Jan 27, 2016
instead of expanding the block size of its border box.

Closes servo#9308.
pcwalton added a commit to pcwalton/servo that referenced this issue Jan 27, 2016
instead of expanding the block size of its border box.

Closes servo#9308.
bors-servo pushed a commit that referenced this issue Jan 27, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Jan 28, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
pcwalton added a commit to pcwalton/servo that referenced this issue Jan 28, 2016
instead of expanding the block size of its border box.

Closes servo#9308.
bors-servo pushed a commit that referenced this issue Jan 28, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Jan 28, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Jan 29, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Jan 29, 2016
Expand the block size of the root flow's margin box to the viewport size instead of expanding the block size of its border box.

Closes #9308.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants