OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../resources/js-test.js"></script> | |
3 <script src="../fast/css/getComputedStyle/resources/computed-style-listing.js">< /script> | |
4 <div id="target"></div> | |
5 <script> | |
Timothy Loh
2016/01/06 00:14:52
Can we use testharness instead of js-test? Otherwi
rwlbuis
2016/01/06 08:11:03
Done.
| |
6 description("This test documents all computed styles on a div element."); | |
7 var style = getComputedStyle(target); | |
8 for (var i = 0; i < style.length; i++) { | |
9 var property = style.item(i); | |
10 shouldBeFalse("CSS.supports('" + property + "', '')"); | |
11 shouldBeFalse("CSS.supports('" + property + "', ' ')"); | |
12 } | |
13 </script> | |
OLD | NEW |