mirror of
https://github.com/servo/servo.git
synced 2025-09-15 17:38:23 +01:00
layout: Use overflow: visible
if overflow
was propagated to viewport (#38598)
The `overflow-*` values of either the root element or the `<body>` get propagated to the viewport. However, we were missing this part: > The element from which the value is propagated must then have a used `overflow` value of `visible`. See https://drafts.csswg.org/css-overflow/#overflow-propagation Testing: - `css/cssom-view/scrolling-quirks-vs-nonquirks.html` - `css/css-overflow/overflow-body-propagation-007.html` - `css/css-overflow/overflow-body-propagation-008.html` - `css/css-overflow/overflow-body-propagation-009.html` - `css/css-overflow/scrollable-overflow-with-nested-elements-001.html` - `css/css-overflow/scrollable-overflow-with-nested-elements-002.html` - `css/css-overflow/scrollable-overflow-with-nested-elements-003.html` - `css/css-overflow/scrollable-overflow-with-nested-elements-004.html` - `css/css-overflow/scrollbar-gutter-scroll-into-view.html` Failures: - `css/css-overflow/overflow-body-propagation-010.html` Failing because of missing support for `contain: paint`. - `css/css-overflow/scrollable-overflow-with-nested-elements-005.html` Failing because of wrong `data-expected-height`, but correct `data-expected-scroll-height` which is core of this PR. `data-expected-height` can be dealt separately. Fixes: #38248 --------- Signed-off-by: Shubham Gupta <shubham13297@gmail.com> Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
37088aa4c3
commit
d8ff9c7a08
22 changed files with 373 additions and 72 deletions
|
@ -1,2 +0,0 @@
|
|||
[overflow-body-propagation-007.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[overflow-body-propagation-008.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[overflow-body-propagation-009.html]
|
||||
expected: FAIL
|
2
tests/wpt/meta/css/css-overflow/overflow-body-propagation-010.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-overflow/overflow-body-propagation-010.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[overflow-body-propagation-010.html]
|
||||
expected: FAIL
|
3
tests/wpt/meta/css/css-overflow/scrollable-overflow-with-nested-elements-005.html.ini
vendored
Normal file
3
tests/wpt/meta/css/css-overflow/scrollable-overflow-with-nested-elements-005.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[scrollable-overflow-with-nested-elements-005.html]
|
||||
[html 1]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[scrollbar-gutter-scroll-into-view.html]
|
||||
expected: FAIL
|
|
@ -1,27 +0,0 @@
|
|||
[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