2 <script src=
"../../resources/js-test.js"></script>
4 #text { text-shadow:
0.5px
1.5px
2.5px red; }
5 #box { box-shadow:
0.5px
1.5px
2.5px
3.5px red; }
8 <div id=
"text">Text shadow
</div>
9 <div id=
"box">Box shadow
</div>
12 description("Tests the computed style for subpixel shadows");
14 var text
= document
.getElementById("text");
15 var box
= document
.getElementById("box");
17 var style
= window
.getComputedStyle(text
, null);
18 shouldBe("style.getPropertyValue('text-shadow')",
19 "'rgb(255, 0, 0) 0.5px 1.5px 2.5px'");
20 style
= window
.getComputedStyle(box
, null);
21 shouldBe("style.getPropertyValue('box-shadow')",
22 "'rgb(255, 0, 0) 0.5px 1.5px 2.5px 3.5px'");