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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 correct ly.");
6
7 if (window.internals) {
8 internals.settings.setCSSStickyPositionEnabled(true);
9 }
10
11 function test(value)
12 {
13 var div = document.createElement("div");
14 div.setAttribute("style", value);
15 document.body.appendChild(div);
16
17 var result = div.style.getPropertyValue("position");
18 document.body.removeChild(div);
19 return result;
20 }
21
22 shouldBe('test("position: sticky;")', '"sticky"');
23 </script>
24 </body>
OLDNEW
« 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