dir-style-03a.html (733B)
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 if :dir() can work with other selectors correctly."> 10 <link rel="match" href="dir-style-03-ref.html"> 11 <style> 12 div { color: lime; text-align: left; } 13 :not(:dir(ltr)) + div { color: blue; } 14 </style> 15 </head> 16 <body> 17 <div dir="rtl">This element is rtl.</div> 18 <div>This element has default direction.</div> 19 </body> 20 </html>