Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: LayoutTests/fast/dom/shadow/shadow-root-direction.html

Issue 302433015: Use correct offset when attribute auto is present (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compilation issue Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698