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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/dir01.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/dir01.html
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/dir01.html b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/dir01.html
new file mode 100644
index 0000000000000000000000000000000000000000..c029b148d3bb98cf4b2cb4e5b3ca0a913bd4e7b7
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/selectors/pseudo-classes/dir01.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset=iso-8859-8 id=meta>
+<title id=title>Selector: pseudo-classes (:dir(ltr), :dir(rtl)) in iso-8859-8 documents</title>
+<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org" id=link1>
+<link rel=help href="https://html.spec.whatwg.org/multipage/#pseudo-classes" id=link2>
+<script src="../../../../../../resources/testharness.js" id=script1></script>
+<script src="../../../../../../resources/testharnessreport.js" id=script2></script>
+<script src="utils.js" id=script3></script>
+<div id="log"></div>
+<div>This text is left to right<div id=div1 style="direction:rtl">this is right to left</div></div>
+<div>This text is left to right<span id=div2 style="direction:rtl">this is left to right</span></div>
+
+<script>
+ var ltr = new Array(),
+ all = document.querySelectorAll('*');
+ for(var i = all.length; i--; ltr.unshift(all[i]));
+ testSelector(":dir(ltr)", ltr, "direction doesn't affect :dir()");
+</script>

Powered by Google App Engine
This is Rietveld 408576698