mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
3
tests/wpt/web-platform-tests/css/css-namespaces-3/OWNERS
Normal file
3
tests/wpt/web-platform-tests/css/css-namespaces-3/OWNERS
Normal file
|
@ -0,0 +1,3 @@
|
|||
@plinss
|
||||
@dbaron
|
||||
@fantasai
|
3
tests/wpt/web-platform-tests/css/css-namespaces-3/README
Normal file
3
tests/wpt/web-platform-tests/css/css-namespaces-3/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
These are tests for the CSS Namespaces Module:
|
||||
|
||||
http://www.w3.org/TR/css-namespaces-3/
|
|
@ -0,0 +1,20 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: prefix case-sensitivity</title>
|
||||
<style>
|
||||
@namespace Foo "y";
|
||||
@namespace foo "x";
|
||||
test { background:red }
|
||||
Foo|test { background:lime }
|
||||
foo|test { background:red }
|
||||
FOO|test { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="y">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: empty string prefix (Explicit element namespace)</title>
|
||||
<style>
|
||||
@namespace foo "";
|
||||
t { background:red }
|
||||
foo|t { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="">This sentence should have a green background.</t></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<root>
|
||||
<head xmlns="http://www.w3.org/1999/xhtml">
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-1-generic.xml"/>
|
||||
<title>CSS Namespaces Test Suite: empty string prefix (Implied element namespace)</title>
|
||||
<style>
|
||||
@namespace foo "";
|
||||
t { background:red }
|
||||
foo|t { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<t>This sentence should have a green background.</t>
|
||||
</root>
|
|
@ -0,0 +1,18 @@
|
|||
<root>
|
||||
<head xmlns="http://www.w3.org/1999/xhtml">
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-2-generic.xml"/>
|
||||
<title>CSS Namespaces Test Suite: empty string default namespace</title>
|
||||
<style>
|
||||
@namespace "";
|
||||
@namespace x "test";
|
||||
*|t, *|root { display:block }
|
||||
*|t, t[x] { background:lime }
|
||||
t { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<t x="">This sentence should have a green background.</t>
|
||||
<t xmlns="test">This sentence should have a green background.</t>
|
||||
</root>
|
|
@ -0,0 +1,18 @@
|
|||
<root>
|
||||
<head xmlns="http://www.w3.org/1999/xhtml">
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="author" title="Boris Zbarsky" href="https://bugzilla.mozilla.org/show_bug.cgi?id=458381#c4"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-2-generic.xml"/>
|
||||
<title>CSS Namespaces Test Suite: no default namespace</title>
|
||||
<style>
|
||||
@namespace x "test";
|
||||
root *|* { background:red; display:block }
|
||||
head { display:none }
|
||||
t { background: lime }
|
||||
</style>
|
||||
</head>
|
||||
<t>This sentence should have a green background.</t>
|
||||
<t xmlns="test">This sentence should have a green background.</t>
|
||||
</root>
|
|
@ -0,0 +1,23 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#prefixes"/>
|
||||
<link rel="match" href="reftest/ref-lime-2.xml"/>
|
||||
<title>CSS Namespaces Test Suite: no prefix</title>
|
||||
<style>
|
||||
@namespace "test";
|
||||
|t { background:lime }
|
||||
t { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace "test";
|
||||
t2 { background:lime }
|
||||
|t2 { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="">This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="test">This sentence should have a green background.</t2></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p style="background: lime">This sentence should have a green background.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,11 @@
|
|||
<root>
|
||||
<head xmlns="http://www.w3.org/1999/xhtml">
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
<style>
|
||||
t { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<t>This sentence should have a green background.</t>
|
||||
</root>
|
|
@ -0,0 +1,10 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<root>
|
||||
<head xmlns="http://www.w3.org/1999/xhtml">
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
<style>
|
||||
t, root { display:block }
|
||||
t { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<t>This sentence should have a green background.</t>
|
||||
<t>This sentence should have a green background.</t>
|
||||
</root>
|
|
@ -0,0 +1,11 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,12 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="L. David Baron" href="https://dbaron.org/"/>
|
||||
<link rel="author" title="Mozilla" href="http://mozilla.org/"/>
|
||||
<title>CSS Namespaces Test Suite reference</title>
|
||||
</head>
|
||||
<body>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
<p><test style="background: lime">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#scope"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<meta name="flags" content="invalid"/>
|
||||
<title>CSS Namespaces Test Suite: scope <style></title>
|
||||
<style>
|
||||
@namespace x url("test");
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
x|test { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#scope"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: scope @import</title>
|
||||
<style>
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@import url("support/scope-002a.css");
|
||||
@import url("support/scope-002b.css");
|
||||
@namespace w "test";
|
||||
x|test { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Prevent support files from being propagated into this directory.
|
|
@ -0,0 +1 @@
|
|||
* { background:red ! important }
|
|
@ -0,0 +1,3 @@
|
|||
@namespace x url("test");
|
||||
@namespace y url("test");
|
||||
w|test { background:red }
|
|
@ -0,0 +1,2 @@
|
|||
y|test { background: red }
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
@charset "UTF-8";
|
||||
@namespace url("test");
|
||||
@namespace url("test2");
|
||||
*|test { background:lime }
|
||||
test { background:red }
|
|
@ -0,0 +1,16 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1-block.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace case-insensitivity</title>
|
||||
<style>
|
||||
@NAmespace x "http://www.w3.org/1999/xhtml";
|
||||
x|p { background: lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This sentence should have a green background.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1-block.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace syntax with escapes</title>
|
||||
<style>
|
||||
@\N\000041 mes\pac\65 x "http://www.w3.org/1999/xhtml";
|
||||
x|p { background: lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This sentence should have a green background.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-5.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace default namespace syntax</title>
|
||||
<style>
|
||||
*|test { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url(test-a);
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url('test-b');
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("test-c");
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace 'test-d';
|
||||
test { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace "test-e";
|
||||
test { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test-a">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-b">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-c">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-d">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-e">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace url() with escape</title>
|
||||
<style>
|
||||
@namespace u\00072l("test");
|
||||
*|test { background:red }
|
||||
test { background: lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-5.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace string and url() syntax</title>
|
||||
<style>
|
||||
test { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace a url(test-a);
|
||||
@namespace b url('test-b');
|
||||
@namespace c url("test-c");
|
||||
@namespace d 'test-d';
|
||||
@namespace e "test-e";
|
||||
a|test, b|test, c|test, d|test, e|test { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test-a">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-b">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-c">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-d">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-e">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<meta name="flags" content="invalid"/>
|
||||
<title>CSS Namespaces Test Suite: invalid ordering of @namespace and @import</title>
|
||||
<style>
|
||||
@namespace x u\00072l("test");
|
||||
@import url("support/fail.css");
|
||||
@namespace url("test2");
|
||||
x|test { background:lime }
|
||||
test { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace and @charset</title>
|
||||
<link rel="stylesheet" href="support/syntax-007.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,23 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-2.xml"/>
|
||||
<title>CSS Namespaces Test Suite: escapes in prefix</title>
|
||||
<style>
|
||||
@namespace \72x url("test");
|
||||
t { background:red }
|
||||
r\78|t { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace \032 url("test"); /* two spaces, see CSS 2.1, 4.1.3 */
|
||||
t2 { background:red }
|
||||
\32|t2 { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="test">This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="test">This sentence should have a green background.</t2></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: escaped vertical bar in qualified name</title>
|
||||
<style>
|
||||
@namespace x "test";
|
||||
test { background:red }
|
||||
x|test { background:lime }
|
||||
x\00007Ctest { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-3.xml"/>
|
||||
<meta name="flags" content="invalid"/>
|
||||
<title>CSS Namespaces Test Suite: duplicate @namespace declarations</title>
|
||||
<style>
|
||||
@namespace "1";
|
||||
@namespace dummy "yummy";
|
||||
@namespace "2";
|
||||
*|t { background:lime }
|
||||
t { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace "1";
|
||||
@namespace dummy "yummy";
|
||||
@namespace "2";
|
||||
*|t2 { background:red }
|
||||
t2 { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace x "1";
|
||||
@namespace dummy "yummy";
|
||||
@namespace x "2";
|
||||
*|t3 { background:red }
|
||||
x|t3 { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="1">This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="2">This sentence should have a green background.</t2></p>
|
||||
<p><t3 xmlns="2">This sentence should have a green background.</t3></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,47 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-6.xml"/>
|
||||
<title>CSS Namespaces Test Suite: string comparison (no URI resolving)</title>
|
||||
<style>
|
||||
@namespace url("http://example.com/");
|
||||
*|t { background:lime }
|
||||
t { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("http://example.com/");
|
||||
*|t2 { background:lime }
|
||||
t2 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("HTTP://example.com/");
|
||||
*|t3 { background:lime }
|
||||
t3 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("http://example.COM/");
|
||||
*|t4 { background:lime }
|
||||
t4 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("%41");
|
||||
*|t5 { background:lime }
|
||||
t5 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url("A");
|
||||
*|t6 { background:lime }
|
||||
t6 { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="HTTP://example.com/">This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="http://example.COM/">This sentence should have a green background.</t2></p>
|
||||
<p><t3 xmlns="http://example.com/">This sentence should have a green background.</t3></p>
|
||||
<p><t4 xmlns="http://example.com/">This sentence should have a green background.</t4></p>
|
||||
<p><t5 xmlns="A">This sentence should have a green background.</t5></p>
|
||||
<p><t6 xmlns="%41">This sentence should have a green background.</t6></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,31 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-3.xml"/>
|
||||
<title>CSS Namespaces Test Suite: whitespace and comment handling</title>
|
||||
<style>
|
||||
test { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace/* test */
|
||||
a
|
||||
url(
|
||||
test-a );
|
||||
|
||||
@namespace/**/b/**/url( 'test-b'
|
||||
);
|
||||
|
||||
@namespace c url("test-c"
|
||||
);
|
||||
|
||||
a|test, b|test, c|test { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><test xmlns="test-a">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-b">This sentence should have a green background.</test></p>
|
||||
<p><test xmlns="test-c">This sentence should have a green background.</test></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,44 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-5.xml"/>
|
||||
<meta name="flags" content="invalid"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace error handling</title>
|
||||
<style>
|
||||
t, t2, t3, t4, t5 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@namespace "test" {}
|
||||
t { background:lime }
|
||||
</style>
|
||||
<style id="a">@namespace x "test</style>
|
||||
<script>
|
||||
document.getElementById("a").sheet.insertRule("x|t2 {background:lime }", 1)
|
||||
</script>
|
||||
<style>
|
||||
@namespace "fail;
|
||||
; t3 { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url('fail);
|
||||
t4 { background:red !important; }
|
||||
);
|
||||
t4 { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace url(test);
|
||||
@namespace url('test' x);
|
||||
t5 { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t>This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="test">This sentence should have a green background.</t2></p>
|
||||
<p><t3>This sentence should have a green background.</t3></p>
|
||||
<p><t4>This sentence should have a green background.</t4></p>
|
||||
<p><t5 xmlns="test">This sentence should have a green background.</t5></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,31 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-3.xml"/>
|
||||
<meta name="flags" content="invalid"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace and invalid at-rules</title>
|
||||
<style>
|
||||
t, t2, t3 { background:red }
|
||||
</style>
|
||||
<style>
|
||||
@import x {}
|
||||
@namespace x "test";
|
||||
x|t { background:lime }
|
||||
</style>
|
||||
<style>
|
||||
@namespace x "test-top";
|
||||
@foobar this is funny { not:sure }
|
||||
@namespace "test";
|
||||
@foobar this is funner;
|
||||
t2 { background:lime }
|
||||
x|t3 { background:lime }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="test">This sentence should have a green background.</t></p>
|
||||
<p><t2 xmlns="test">This sentence should have a green background.</t2></p>
|
||||
<p><t3 xmlns="test-top">This sentence should have a green background.</t3></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Anne van Kesteren" href="http://annevankesteren.nl/"/>
|
||||
<link rel="author" title="Opera Software ASA" href="http://opera.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<link rel="match" href="reftest/ref-lime-1.xml"/>
|
||||
<title>CSS Namespaces Test Suite: invalid URI</title>
|
||||
<style>
|
||||
@namespace x url("test");
|
||||
@namespace x url("}x< >x{");
|
||||
t { background:lime }
|
||||
x|t { background:red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p><t xmlns="test">This sentence should have a green background.</t></p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<link rel="author" title="Daniel Glazman" href="http://glazman.org/"/>
|
||||
<link rel="author" title="Disruptive Innovations SAS" href="http://disruptive-innovations.com/"/>
|
||||
<link rel="help" href="http://www.w3.org/TR/css-namespaces-3/#syntax"/>
|
||||
<title>CSS Namespaces Test Suite: @namespace and other rules ordering</title>
|
||||
<style>
|
||||
@namespace test url("test");
|
||||
@media all {
|
||||
test|test { background-color: lime; }
|
||||
}
|
||||
@namespace test2 url("test");
|
||||
test2|test { background: red }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<test xmlns="test">This sentence should have a green
|
||||
background.</test>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue