4 var propertiesToTest
= {
5 "grid-auto-columns": true,
6 "grid-auto-flow": true,
7 "grid-auto-rows": true,
10 "grid-column-end": true,
11 "grid-column-start": true,
12 "grid-template-columns": true,
13 "grid-template-rows": true,
16 "grid-row-start": true,
17 "grid-template-areas": true,
22 if (window
.testRunner
)
23 testRunner
.dumpAsText();
24 var style
= document
.defaultView
.getComputedStyle(document
.body
, "");
26 for (var i
= 0; i
!= style
.length
; ++i
) {
27 var name
= style
.item(i
);
28 if (!propertiesToTest
[name
])
30 text
+= name
+ ": " + style
.getPropertyValue(name
) + ";\n";
32 document
.getElementById("exposed").textContent
= text
;
35 <body onload=
"test()">
36 <p>CSS Grid Layout Attributes that are exposed in the CSS computed style object:
</p>
37 <p id=
"exposed" style=
"white-space: pre"></p>