css3-selectors-lang-044.html (804B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <head> 4 <meta charset="utf-8"/> 5 <title>[lang="es"], lang="ES"</title> 6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'> 7 <link rel='help' href='http://www.w3.org/TR/css3-selectors/#attribute-selectors'> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <meta name='flags' content='HTMLonly'> 11 <style type='text/css'> 12 .test div { width: 50px; } 13 #box[lang='es'] { width: 100px; } 14 </style> 15 </head> 16 <body> 17 18 19 20 <div class="test"><div id="box" lang="ES"> </div></div> 21 22 23 <script> 24 test(function() { 25 assert_equals(document.getElementById('box').offsetWidth, 100); 26 }, "A lang= value will match a lang attribute value regardless of case differences."); 27 </script> 28 29 <div id='log'></div> 30 31 </body> 32 </html>