Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: LayoutTests/fast/scroll-behavior/parse-scroll-behavior.html

Issue 766023002: Rename 'instant' value of scroll-behavior CSS property to 'auto' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698