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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="target" dir="rtl">
4 </div>
5 <script>
6 description('Element direction details are accessible to shadow root');
7 var root = document.getElementById('target');
8 var shadowRoot = root.createShadowRoot();
9 shadowRoot.innerHTML = "<div id='target2'> hello! </div>"
10
11 shouldBeEqualToString('getComputedStyle(shadowRoot.getElementById("target2")).di rection', 'rtl');
12 shouldBeEqualToString('getComputedStyle(root).direction', 'rtl');
13
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698