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> |