Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upunexpected overflow with display:inline-block + margin #9308
Labels
Comments
This was referenced Jan 18, 2016
Closed
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
added 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
added 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 -->
|
Smaller test case:
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
added 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
added 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
added 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
added 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
added 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
added 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
The following example makes the body element scrollable. The extra area is apparently directly related to the margin value.
Note: using
blockinstead ofinline-blockreduces the scrollable area, but it's still possible to scroll.