| Index: LayoutTests/fast/dynamic/last-child-descendant.html
|
| diff --git a/LayoutTests/fast/dynamic/last-child-descendant.html b/LayoutTests/fast/dynamic/last-child-descendant.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b85439a8f8d61d6f74f2eab58924f878eb2048cf
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dynamic/last-child-descendant.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<style>
|
| +#b { color: green; }
|
| +#a:last-child #b { color: red }
|
| +</style>
|
| +<div id="t">
|
| + <div id="a">
|
| + <div id="b">This text should be green</div>
|
| + </div>
|
| +</div>
|
| +<script>
|
| +description("Evaluation of :last-child affecting descendant.");
|
| +
|
| +t.offsetTop;
|
| +a.style.backgroundColor = "white";
|
| +t.offsetTop;
|
| +t.insertBefore(document.createElement("div"), null);
|
| +
|
| +var green = "rgb(0, 128, 0)";
|
| +
|
| +shouldBe("getComputedStyle(b).color", "green");
|
| +</script>
|
|
|