2 <script src=
"../../../resources/js-test.js"></script>
4 #t1::before { color: green }
5 #t2::before { display: none; content:
"X"; color: green; }
6 #t3::before { display: none; color: green; }
8 #t4::before { content:
"X"; color: green; }
10 #t5::before { color: green; }
20 description("Check getComputedStyle for ::before with various combinations of display and content.");
22 var expectedDisplay
= [
31 for (var i
=0; i
<6; i
++) {
33 var computed
= getComputedStyle(document
.getElementById("t"+(i
+1)), "::before");
35 shouldBe("computed.color", "'rgb(0, 128, 0)'");
36 shouldBe("computed.display", expectedDisplay
[i
]);