at-charset-001.xht (1097B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: HTTP Charset vs BOM</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset" /> 7 <link rel="match" href="at-charset-001-ref.xht"/> 8 <meta name="flags" content="http" /> 9 <meta name="assert" content="The Byte Order Mark in the stylesheet overrides the HTTP charset setting." /> 10 <style type="text/css"> 11 @import "support/at-charset-001.css"; /* shift-jis encoding with UTF-8 BOM */ 12 .平和 13 { 14 color: green; 15 } 16 div 17 { 18 color: red; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if both lines of "Filler Text" below are green.</p> 24 <div class="平和">Filler Text</div> 25 <div id="div2">Filler Text</div> 26 </body> 27 </html>