diff options
author | ajuma@chromium.org <ajuma@chromium.org> | 2014-11-28 22:06:40 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org> | 2014-11-28 22:06:40 +0000 |
commit | d618ce9432a8f8b6e9bda0cfdfa0aef6dfab2ec1 (patch) | |
tree | 11e6aba8f125d624de60ebd320a82582e194db72 /third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html | |
parent | 45248ac95bae70e6158938773d9a4dee061eeaa8 (diff) | |
download | chromium_src-d618ce9432a8f8b6e9bda0cfdfa0aef6dfab2ec1.zip chromium_src-d618ce9432a8f8b6e9bda0cfdfa0aef6dfab2ec1.tar.gz chromium_src-d618ce9432a8f8b6e9bda0cfdfa0aef6dfab2ec1.tar.bz2 |
Rename 'instant' value of scroll-behavior CSS property to 'auto'
This changes the 'instant' value of scroll-behavior to 'auto',
matching a change made in the CSSOM View spec (and also
matching Firefox's implementation).
Spec: http://dev.w3.org/csswg/cssom-view/#css-properties
BUG=243871
Review URL: https://codereview.chromium.org/766023002
git-svn-id: svn://svn.chromium.org/blink/trunk@186196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html index 80c905a..1d4df1a 100644 --- a/third_party/WebKit/LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html +++ b/third_party/WebKit/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> |