| Index: LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html
|
| diff --git a/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html b/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html
|
| index 80c905aa59c09b5d4900cadc3b964d130fce529c..1d4df1af5d4e5fe3c1ed83e79c63ba05025d1f26 100644
|
| --- a/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html
|
| +++ b/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html
|
| @@ -2,8 +2,8 @@
|
| <html>
|
| <head>
|
| <style>
|
| -#scrollBehaviorInstant {
|
| - scroll-behavior: instant;
|
| +#scrollBehaviorAuto {
|
| + scroll-behavior: auto;
|
| }
|
|
|
| #scrollBehaviorSmooth {
|
| @@ -13,14 +13,14 @@
|
| <script src="../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<div id="scrollBehaviorInstant"></div>
|
| +<div id="scrollBehaviorAuto"></div>
|
| <div id="scrollBehaviorSmooth"></div>
|
| <script>
|
| description('Test that setting and getting scroll-behavior works as expected');
|
|
|
| debug("Test getting scroll-behavior set through CSS");
|
| -var scrollBehaviorInstant = document.getElementById("scrollBehaviorInstant");
|
| -shouldBe("getComputedStyle(scrollBehaviorInstant, '').getPropertyValue('scroll-behavior')", "'instant'");
|
| +var scrollBehaviorAuto = document.getElementById("scrollBehaviorAuto");
|
| +shouldBe("getComputedStyle(scrollBehaviorAuto, '').getPropertyValue('scroll-behavior')", "'auto'");
|
|
|
| var scrollBehaviorSmooth = document.getElementById("scrollBehaviorSmooth");
|
| shouldBe("getComputedStyle(scrollBehaviorSmooth, '').getPropertyValue('scroll-behavior')", "'smooth'");
|
| @@ -29,7 +29,7 @@ debug("");
|
| debug("Test initial value of scroll-behavior");
|
| var element = document.createElement("div");
|
| document.body.appendChild(element);
|
| -shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'instant'");
|
| +shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'auto'");
|
|
|
| debug("");
|
| debug("Test getting and setting scroll-behavior through JS");
|
| @@ -38,15 +38,15 @@ document.body.appendChild(element);
|
| element.style.scrollBehavior = "smooth";
|
| shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'smooth'");
|
|
|
| -element.style.scrollBehavior = "instant";
|
| -shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'instant'");
|
| +element.style.scrollBehavior = "auto";
|
| +shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'auto'");
|
|
|
| debug("");
|
| debug("Test the value 'initial'");
|
| element.style.scrollBehavior = "smooth";
|
| shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'smooth'");
|
| element.style.scrollBehavior = "initial";
|
| -shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'instant'");
|
| +shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'auto'");
|
|
|
| debug("");
|
| debug("Test the value 'inherit'");
|
| @@ -67,7 +67,7 @@ parentElement.style.scrollBehavior = "smooth";
|
| shouldBe("getComputedStyle(parentElement, '').getPropertyValue('scroll-behavior')", "'smooth'");
|
| element = document.createElement("div");
|
| parentElement.appendChild(element);
|
| -shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'instant'");
|
| +shouldBe("getComputedStyle(element, '').getPropertyValue('scroll-behavior')", "'auto'");
|
| </script>
|
| </body>
|
| </html>
|
|
|