mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Revert "Include the scrollable overflow of a child box if either its parent or child has overflow: visible
(#38443)" (#38546)
This reverts commit dcb90bb85e
.
This broke scrollable overflow calculation in the following case:
```
<div id="foo" style="width: 200px; height: 200px; outline: solid; overflow: auto;">
<div style="height: 5000px; background: pink;">hello</div>
</div>
```
In this case the overflow is propagating through the `overflow: auto`
`<div>` and into the parents. When dumping the flow tree I see the root
node being 5000 pixels tall. It's unclear why this change didn't break
any tests, so it's likely that we need to add a test for this case.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
5c307a38df
commit
4257db643b
5 changed files with 55 additions and 51 deletions
27
tests/wpt/meta/css/cssom-view/scrolling-quirks-vs-nonquirks.html.ini
vendored
Normal file
27
tests/wpt/meta/css/cssom-view/scrolling-quirks-vs-nonquirks.html.ini
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
[scrolling-quirks-vs-nonquirks.html]
|
||||
[scrollWidth/scrollHeight on the root element in non-quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollWidth/scrollHeight on the root element in quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollWidth/scrollHeight on the HTML body element in quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scroll() on the root element in non-quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollBy() on the root element in non-quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollLeft/scrollTop on the root element in non-quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scroll() on the HTML body element in quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollBy() on the HTML body element in quirks mode]
|
||||
expected: FAIL
|
||||
|
||||
[scrollLeft/scrollTop on the HTML body element in quirks mode]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue