| Index: third_party/WebKit/LayoutTests/fast/dom/shadow/alternate-stylesheets.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/alternate-stylesheets.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/alternate-stylesheets.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1b97b2c910eeba3f95d3bc00546a09895deb2604
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/alternate-stylesheets.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<div id="host"></div>
|
| +<script>
|
| + var root = host.createShadowRoot();
|
| + root.innerHTML = '<style title="not-preferred">div { color: red }</style><style title="ignored">div { color: green }</style><div>Should be green</div>';
|
| +</script>
|
| +<style>#alternate { color: green }</style>
|
| +<link rel="alternate stylesheet" title="not-preferred" href="data:text/css,#alternate { color: red }">
|
| +</style>
|
| +<div id="alternate">Should be green</div>
|
| +<script>
|
| + description("Title attribute should be ignored for style elements in shadow trees.");
|
| +
|
| + shouldBeEqualToString("getComputedStyle(root.querySelector('div')).color", "rgb(0, 128, 0)");
|
| + shouldBeEqualToString("getComputedStyle(alternate).color", "rgb(0, 128, 0)");
|
| +</script>
|
|
|