OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 <style> | |
6 .test * { | |
7 -webkit-mask-box-image-source: url(resources/dot.png); | |
8 -webkit-mask-box-image-slice: 3 fill; | |
9 width: 100px; | |
10 height: 100px; | |
11 background-color: blue; | |
12 visibility: hidden; | |
13 } | |
14 | |
15 .test *:nth-child(2) { | |
Julien - ping for review
2013/11/24 22:53:01
Let's avoid nth-child selector, which makes the te
davve
2013/11/25 22:15:16
In combination with the next issue (about adding m
| |
16 -webkit-mask-box-image-width: auto; | |
17 } | |
18 | |
19 .test *:nth-child(3) { | |
20 -webkit-mask-box-image-width: 1; | |
21 } | |
22 | |
23 .test *:nth-child(4) { | |
24 -webkit-mask-box-image-width: 0px; | |
25 } | |
Julien - ping for review
2013/11/24 22:53:01
If we are going to do some testing, how about perc
davve
2013/11/25 22:15:16
Done.
| |
26 </style> | |
27 </head> | |
28 <body> | |
29 <div class="test"> | |
30 <div></div> | |
31 <div></div> | |
32 <div></div> | |
33 <div></div> | |
34 </div> | |
35 <script> | |
36 description("Test getComputedStyle().webkitMaskBoxImageWidth"); | |
Julien - ping for review
2013/11/24 22:53:01
That's a bit tense for a description IMO (it is ac
davve
2013/11/25 22:15:16
Done.
| |
37 var elements = document.querySelectorAll('.test *'); | |
38 shouldBeEqualToString("getComputedStyle(elements[0]).webkitMaskBoxImageWid th", "auto"); /* initial */ | |
39 shouldBeEqualToString("getComputedStyle(elements[1]).webkitMaskBoxImageWid th", "auto"); | |
40 shouldBeEqualToString("getComputedStyle(elements[2]).webkitMaskBoxImageWid th", "1"); | |
41 shouldBeEqualToString("getComputedStyle(elements[3]).webkitMaskBoxImageWid th", "0px"); | |
42 </script> | |
43 </body> | |
44 </html> | |
OLD | NEW |