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

Unified Diff: LayoutTests/fast/css/sticky/resources/parsing-position-sticky.js

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months 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/css/sticky/resources/parsing-position-sticky.js
diff --git a/LayoutTests/fast/css/sticky/resources/parsing-position-sticky.js b/LayoutTests/fast/css/sticky/resources/parsing-position-sticky.js
new file mode 100644
index 0000000000000000000000000000000000000000..1f59ccc5b97875413bd55365e04341a849f916ad
--- /dev/null
+++ b/LayoutTests/fast/css/sticky/resources/parsing-position-sticky.js
@@ -0,0 +1,14 @@
+description("This tests checks that the sticky value for position parses correctly.");
+
+function test(value)
+{
+ var div = document.createElement("div");
+ div.setAttribute("style", value);
+ document.body.appendChild(div);
+
+ var result = div.style.getPropertyValue("position");
+ document.body.removeChild(div);
+ return result;
+}
+
+shouldBe('test("position: sticky;")', '"sticky"');

Powered by Google App Engine
This is Rietveld 408576698