Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / sticky / parsing-position-sticky.html
bloba645697ec11d33d864f0220349208f44d79aeeed
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 description("This tests checks that the sticky value for position parses correctly.");
7 if (window.internals) {
8 internals.settings.setCSSStickyPositionEnabled(true);
11 function test(value)
13 var div = document.createElement("div");
14 div.setAttribute("style", value);
15 document.body.appendChild(div);
17 var result = div.style.getPropertyValue("position");
18 document.body.removeChild(div);
19 return result;
22 shouldBe('test("position: sticky;")', '"sticky"');
23 </script>
24 </body>