Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dynamic / first-child-descendant.html
blob47cd8cb7388d5e2f7cbcaa36cd637f0f1560a603
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 #b { color: green; }
5 #a:first-child #b { color: red }
6 </style>
7 <div id="t">
8 <div id="a">
9 <div id="b">This text should be green</div>
10 </div>
11 </div>
12 <script>
13 description("Evaluation of :first-child affecting descendant.");
15 t.offsetTop;
16 a.style.backgroundColor = "white";
17 t.offsetTop;
18 t.insertBefore(document.createElement("div"), a);
20 var green = "rgb(0, 128, 0)";
22 shouldBe("getComputedStyle(b).color", "green");
23 </script>