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

Side by Side Diff: LayoutTests/fast/css/getComputedStyle/computed-style-grid-layout.html

Issue 200263003: [CSS Grid Layout] the "grid-template-areas" is not identified as computable property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 6 years, 9 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/getComputedStyle/computed-style-grid-layout-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 <script>
apavlov 2014/03/26 14:40:59 I've seen a few cases where reviewers insisted on
jfernandez 2014/03/28 00:28:38 Done.
2 var propertiesToTest = {
3 "grid-auto-columns": true,
4 "grid-auto-flow": true,
5 "grid-auto-rows": true,
6 "grid-area": true,
7 "grid-column": true,
8 "grid-column-end": true,
9 "grid-column-start": true,
10 "grid-template-columns": true,
11 "grid-template-rows": true,
12 "grid-row": true,
13 "grid-row-end": true,
14 "grid-row-start": true,
15 "grid-template-areas": true,
16 };
17
18 function test()
19 {
20 if (window.testRunner)
21 testRunner.dumpAsText();
22 var style = document.defaultView.getComputedStyle(document.body, "");
23 var text = "";
24 for (var i = 0; i != style.length; ++i) {
apavlov 2014/03/26 14:40:59 You could make propertiesToTest an array and itera
jfernandez 2014/03/28 00:28:38 This could be an option, but one of the purposes o
25 var name = style.item(i);
26 if (!propertiesToTest[name])
27 continue;
28 text += name + ": " + style.getPropertyValue(name) + ";\n";
29 }
30 document.getElementById("exposed").textContent = text;
31 }
32 </script>
33 <body onload="test()">
34 <p>CSS Grid Layout Attributes that are exposed in the CSS computed style object: </p>
35 <p id="exposed" style="white-space: pre"></p>
36 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/computed-style-grid-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698