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

Side by Side Diff: third_party/WebKit/LayoutTests/external/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/selectors4/dir-style-01a.html

Issue 2783663002: [selectors-4] Import more tests from W3C repository (Closed)
Patch Set: Created 3 years, 8 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 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CSS Test: :dir() selector</title>
6 <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
7 <link rel="author" title="Mozilla" href="https://www.mozilla.org">
8 <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-dir-pseudo" >
9 <meta name="assert" content="Test checks :dir() basic functions with valid a nd invalid values.">
10 <link rel="match" href="dir-style-01-ref.html">
11 <style>
12 div { text-align: left; }
13 :dir(ltr) { color: blue }
14 :dir(rtl) { color: lime }
15 :dir(foopy) { color: red }
16 </style>
17 </head>
18 <body>
19 <div>This element has default direction.</div>
20 <div dir="ltr">This element is ltr.</div>
21 <div dir="rtl">This element is rtl.</div>
22 <div dir="ltr">
23 <div>This element should inherit ltr.</div>
24 <div dir="ltr">This element is ltr.</div>
25 <div dir="rtl">This element is rtl.</div>
26 <div><span>Every <span>word <span>in <span>this <span>element <span>should <span>inherit <span>ltr</span></span></span></span></span></span></span></span> .</div>
27 </div>
28 <div dir="rtl">
29 <div>This element should inherit rtl.</div>
30 <div dir="ltr">This element is ltr.</div>
31 <div dir="rtl">This element is rtl.</div>
32 <div><span>Every <span>word <span>in <span>this <span>element <span>should <span>inherit <span>rtl</span></span></span></span></span></span></span></span> .</div>
33 </div>
34 <div dir="foopy">This element has an invalid dir attribute and
35 should have default direction.</div>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698