css3-selectors-lang-055

[lang="az-Arab-IR"], lang="az-arab-IR"

WeasyPrint

This browser

Flags
HTMLonly, script

Source

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