character-encoding-016.xht (1469B)
1 <?xml version="1.0" encoding='iso-8859-1'?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>CSS Test: html iso-8859-1, css bom and @charset utf8 (in uppercase)</title> 6 <link rel='author' title='Richard Ishida' href='http://rishida.net' /> 7 <!-- placeholdercomment --> 8 <link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' /> 9 <link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=33' /> 10 <meta name='flags' content='http' /> 11 <meta name="assert" content="When a stylesheet has a BOM and an @charset declaration that is for the right Unicode encoding, the stylesheet works." /> 12 <style type='text/css'> 13 /* the CSS below is not part of the test */ 14 .test { font-size: 40px; } 15 .test img { vertical-align: middle; } 16 .test td { padding-right: 60px; } 17 </style> 18 <link rel="stylesheet" type="text/css" href="support/bom-charsetutf8uc.css" /> 19 </head> 20 <body> 21 <p class='instructions'>Test passes if there is a green rectangle below.</p> 22 23 24 <div class="test"><span class="эди">text</span></div> 25 26 27 <!--p class="notes">Notes: <br />The HTML page is served as ISO 8859-1. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be UTF-8.</p--> 28 </body> 29 </html>