| Index: LayoutTests/fast/css/style-sharing-with-descendant-selectors.html
|
| diff --git a/LayoutTests/fast/css/style-sharing-with-descendant-selectors.html b/LayoutTests/fast/css/style-sharing-with-descendant-selectors.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..01b0ff9872772b5893d34cf15fd2e10f80835069
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/style-sharing-with-descendant-selectors.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +div { color: green; }
|
| +div.red span { color: red; }
|
| +</style>
|
| +<script>
|
| +onload = function() {
|
| + var className = 'red';
|
| + div1.classList.add(className);
|
| + div1.classList.remove(className);
|
| + div2.classList.add(className);
|
| +}
|
| +</script>
|
| +<body>
|
| +<p>This test ensures we don't improperly share styles for elements that match different descendant selectors.</p>
|
| +<div id="div1"><b><span>This line should be green.</span></b></div>
|
| +<div id="div2"><b><span>This line should be red.</span></b></div>
|
|
|