summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht
new file mode 100644
index 0000000000..913d1ead06
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/i18n/syndata/character-encoding-017.xht
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding='iso-8859-15'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /><title>CSS Test: html iso-8859-15, css bom and @charset iso15</title>
+<link rel='author' title='Richard Ishida' href='http://rishida.net' />
+<!-- placeholdercomment -->
+<link rel='help' href='http://www.w3.org/TR/CSS21/syndata.html#charset' />
+<link rel='alternate' href='http://www.w3.org/International/tests/tests-html-css/tests-character-encoding/generate?test=34' />
+<meta name='flags' content='http' />
+<meta name="assert" content="When a stylesheet has a BOM, honor it." />
+<style type='text/css'>
+/* the CSS below is not part of the test */
+.test { font-size: 40px; }
+.test img { vertical-align: middle; }
+.test td { padding-right: 60px; }
+</style>
+<link rel="stylesheet" type="text/css" href="support/bom-charset15.css" />
+</head>
+<body>
+<p class='instructions'>Test passes if there is a green rectangle below.</p>
+
+
+<div class="test"><span style="background-color: #00FF00; color: #00FF00;"><span class="hello">text</span></span></div>
+
+
+<!--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 ISO 8859-1. The CSS 2.1 spec says that the whole stylesheet should be abandoned in that case.</p-->
+</body>
+</html>