diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-09-15 12:57:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 10:57:54 +0000 |
commit | abca586e0aa6111d9acd77d4976d52da7671214f (patch) | |
tree | 66d53361ec9c06246a5caf1ac5eec9ee35f8027c /tests/wpt | |
parent | 0b86d6579823d0786b37cee86eaaf3ce6bd8aa7d (diff) | |
download | servo-abca586e0aa6111d9acd77d4976d52da7671214f.tar.gz servo-abca586e0aa6111d9acd77d4976d52da7671214f.zip |
Refactor scrolls on the window object (#29680)
Refactor the scrolling and scrollable area calculation on the window
object, to make it better match the specification. This has some mild
changes to behavior, but in general things work the same as they did
before. This is mainly preparation for properly handling viewport
propagation of the `overflow` property but seems to fix a few issues as
well.
There is one new failure in Layout 2020 regarding `position: sticky`,
but this isn't a big deal because there is no support for `position:
sticky` in Layout 2020 yet.
Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
Diffstat (limited to 'tests/wpt')
-rw-r--r-- | tests/wpt/meta/css/css-position/sticky/position-sticky-hyperlink.html.ini | 2 | ||||
-rw-r--r-- | tests/wpt/mozilla/meta/MANIFEST.json | 2 | ||||
-rw-r--r-- | tests/wpt/mozilla/tests/mozilla/scrollTo.html | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/tests/wpt/meta/css/css-position/sticky/position-sticky-hyperlink.html.ini b/tests/wpt/meta/css/css-position/sticky/position-sticky-hyperlink.html.ini deleted file mode 100644 index 8b52a2be825..00000000000 --- a/tests/wpt/meta/css/css-position/sticky/position-sticky-hyperlink.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[position-sticky-hyperlink.html] - expected: FAIL diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index d6e7863afe8..c509870b10a 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -13794,7 +13794,7 @@ ] ], "scrollTo.html": [ - "f1b4384e63bfc12c45c3eca5edcd98ad32a85502", + "b90c4e69344216372c9f118d70f4989e82a6fce7", [ null, {} diff --git a/tests/wpt/mozilla/tests/mozilla/scrollTo.html b/tests/wpt/mozilla/tests/mozilla/scrollTo.html index f1b4384e63b..b90c4e69344 100644 --- a/tests/wpt/mozilla/tests/mozilla/scrollTo.html +++ b/tests/wpt/mozilla/tests/mozilla/scrollTo.html @@ -3,6 +3,7 @@ <title></title> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> +<div style="position: absolute; top: 0; left: 0; width: 10000px; height: 10000px; background: purple"></div> <script> test(function() { scrollTo(0, 5000); @@ -18,4 +19,3 @@ test(function() { assert_equals(pageYOffset, 0); }); </script> -<div style="position: absolute; top: 0; left: 0; width: 10000px; height: 10000px; background: purple"></div> |