diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht')
-rw-r--r-- | testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht b/testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht new file mode 100644 index 0000000000..be2ff6b242 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/syntax/escapes-015.xht @@ -0,0 +1,151 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + + <title>CSS Test: Escape of non-printable characters within declarations, applying to property values</title> + + <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets" title="4.1.7 Rule sets, declaration blocks, and selectors" /> + <link rel="match" href="../reference/ref-if-there-is-no-red.xht" /> + + <meta content="invalid" name="flags" /> + <meta content="red is a reserved (color name) keyword while red\9 is not a reserved keyword. red\9 is made of red with an escaped horizontal tab. That is why the parsing of the declaration should fail. Same thing with the other 23 tests (see test escapes-016)." name="assert" /> + + <!-- + This test is a much more elaborated version of the test + http://test.csswg.org/suites/css2.1/nightly-unstable/html4/escapes-002.htm + and + http://test.csswg.org/suites/css2.1/nightly-unstable/html4/escapes-014.htm + --> + + <style type="text/css"><![CDATA[ + div + { + color: white; + font-size: 1.25em; + line-height: 1.2; + } + + /* + U+0009 is an horizontal tab + U+000A is a line feed + U+000B is a vertical tab + U+000C is a form feed + U+000D is a carriage return + U+0020 is a blank white space + */ + + div#first + { + color: red \9; + } + + div#second + { + color: red\9; + } + + div#third + { + color: red \A; + } + + div#fourth + { + color: red\A; + } + + div#fifth + { + color: red \B; + } + + div#sixth + { + color: red\B; + } + + /* + U+0009 is an horizontal tab + U+000A is a line feed + U+000B is a vertical tab + U+000C is a form feed + U+000D is a carriage return + U+0020 is a blank white space + */ + + div#seventh + { + color: red \C; + } + + div#eighth + { + color: red\C; + } + + div#ninth + { + color: red \D; + } + + div#tenth + { + color: red\D; + } + + div#eleventh + { + color: red \20; + } + + div#twelfth + { + color: red\20; + } + + /* + U+0009 is an horizontal tab + U+000A is a line feed + U+000B is a vertical tab + U+000C is a form feed + U+000D is a carriage return + U+0020 is a blank white space + */ + + ]]></style> + + </head> + + <body> + + <p>Test passes if there is <strong>no red</strong>.</p> + + <div id="first">1st test FAILED</div> + + <div id="second">2nd test FAILED</div> + + <div id="third">3rd test FAILED</div> + + <div id="fourth">4th test FAILED</div> + + <div id="fifth">5th test FAILED</div> + + <div id="sixth">6th test FAILED</div> + + <div id="seventh">7th test FAILED</div> + + <div id="eighth">8th test FAILED</div> + + <div id="ninth">9th test FAILED</div> + + <div id="tenth">10th test FAILED</div> + + <div id="eleventh">11th test FAILED</div> + + <div id="twelfth">12th test FAILED</div> + + </body> +</html>
\ No newline at end of file |