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

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

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: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/sticky/parsing-position-sticky-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/sticky/parsing-position-sticky.html
diff --git a/LayoutTests/fast/css/sticky/parsing-position-sticky.html b/LayoutTests/fast/css/sticky/parsing-position-sticky.html
new file mode 100644
index 0000000000000000000000000000000000000000..a645697ec11d33d864f0220349208f44d79aeeed
--- /dev/null
+++ b/LayoutTests/fast/css/sticky/parsing-position-sticky.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<body>
+<script src="../../../resources/js-test.js"></script>
+<script>
+description("This tests checks that the sticky value for position parses correctly.");
+
+if (window.internals) {
+ internals.settings.setCSSStickyPositionEnabled(true);
+}
+
+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"');
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/css/sticky/parsing-position-sticky-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698