Index: LayoutTests/fast/dom/shadow/shadow-root-direction.html |
diff --git a/LayoutTests/fast/dom/shadow/shadow-root-direction.html b/LayoutTests/fast/dom/shadow/shadow-root-direction.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..318ef9a16e65d2a46c8100c5c260ee04398bde45 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/shadow/shadow-root-direction.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/js-test.js"></script> |
+<div id="target" dir="rtl"> |
+</div> |
+<script> |
+description('Element direction details are accessible to shadow root'); |
+var root = document.getElementById('target'); |
+var shadowRoot = root.createShadowRoot(); |
+shadowRoot.innerHTML = "<div id='target2'> hello! </div>" |
+ |
+shouldBeEqualToString('getComputedStyle(shadowRoot.getElementById("target2")).direction', 'rtl'); |
+shouldBeEqualToString('getComputedStyle(root).direction', 'rtl'); |
+ |
+</script> |