dir-selector-ltr-002.html (919B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Selectors Level 4 Test: exception handling for an invalid identifier of dir()</title> 5 <link rel="author" title="Miyoung Shin" href="mailto:myid.shin@igalia.com"> 6 <link rel="help" href="http://www.w3.org/TR/selectors4/#dir-pseudo"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content="The invalid identifier of :dir(ltrr) pseudo-class doesn't match an element that has a directionality of (ltr). Even if the div element has dir=ltr, the selector should not match."> 9 <style> 10 div { 11 width: 100px; 12 height: 100px; 13 background-color: green; 14 } 15 16 div:dir(ltrr) { 17 background-color: red; 18 } 19 </style> 20 </head> 21 <body> 22 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 23 <div dir="ltr"></div> 24 </body> 25 </html>