| Index: third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-shared-style.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-shared-style.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-shared-style.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f2f8192c6e6fdc26c6821c5bb536dc2a5adca7be
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-shared-style.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<script src="resources/shadow-dom.js"></script>
|
| +<div id="sandbox"></div>
|
| +<script>
|
| +var shadowStyle = document.createElement('style');
|
| +shadowStyle.innerHTML = 'slot::slotted([data-color=red]) { color: red; }';
|
| +
|
| +var sandbox = document.getElementById('sandbox');
|
| +sandbox.appendChild(
|
| + createDOM('div', {},
|
| + attachShadow(
|
| + {'mode': 'open'},
|
| + shadowStyle,
|
| + createDOM('slot')),
|
| + createDOM('div', {},
|
| + document.createTextNode('normal')),
|
| + // If the style is falsely shared with the <div> above, this won't turn red.
|
| + createDOM('div', {'data-color': 'red'},
|
| + document.createTextNode('red'))));
|
| +</script>
|
|
|