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/selectors/old-tests | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/selectors/old-tests')
309 files changed, 7376 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-1.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-1.xml new file mode 100644 index 0000000000..0fb46f0fd1 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-1.xml @@ -0,0 +1,16 @@ +<!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>Groups of selectors</title> + <style type="text/css"><![CDATA[li,p { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li>The background of this list item should be green</li> + <li>The background of this second list item should be also green</li> +</ul> +<p>The background of this paragraph should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-10.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-10.xml new file mode 100644 index 0000000000..404fa65f28 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-10.xml @@ -0,0 +1,15 @@ +<!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>Substring matching attribute selector (end)</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[title$="bar"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p title="foobar">This paragraph should have a green background because +its title attribute ends with "bar"</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100.xml new file mode 100644 index 0000000000..57658b7013 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[a|foo|="bar"], *|*[html|lang|="en"] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"> +<p html:lang="en-us">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r> +<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100b.xml new file mode 100644 index 0000000000..8519170f15 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-100b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[a|foo|="bar"], *|*[html|lang|="en"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml"> +<p html:lang="en-us">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should have a green background</r> +<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101.xml new file mode 100644 index 0000000000..4d17096f43 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on beginning with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[a|title^="si on"], *|*[title^="si on"] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101b.xml new file mode 100644 index 0000000000..23fc37b86a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-101b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on beginning with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[a|title^="si on"], *|*[title^="si on"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102.xml new file mode 100644 index 0000000000..de59781851 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on end with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[a|title$="tait"], p[|title$="tait"] { background-color : lime } +*|*[|title$="tait"], *|*[html|title$="tait"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102b.xml new file mode 100644 index 0000000000..cfd121ab71 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-102b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on end with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[a|title$="tait"], *|*[html|title$="tait"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p title="si on chantait">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" xmlns:a="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" xmlns:b="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103.xml new file mode 100644 index 0000000000..191533a5d3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on middle with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[a|title*="hanta"], p[|title*="hanta"] { background-color : lime } +*|*[|title*="hanta"], *|*[html|title*="hanta"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103b.xml new file mode 100644 index 0000000000..4cdd208fa4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-103b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute value selector on middle with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[a|title*="hanta"], *|*[html|title*="hanta"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104.xml new file mode 100644 index 0000000000..beed75ddaa --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|title] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104b.xml new file mode 100644 index 0000000000..9a87d41fa3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-104b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|title] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105.xml new file mode 100644 index 0000000000..51d511ee98 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|title="si on chantait"] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105b.xml new file mode 100644 index 0000000000..3c3cd2ce4c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-105b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|title="si on chantait"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106.xml new file mode 100644 index 0000000000..c806d6bf56 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|class~="deux"], *|*[*|foo~="deux"] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p class="un deux trois">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106b.xml new file mode 100644 index 0000000000..a76ec5a05f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-106b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|class~="deux"], *|*[*|foo~="deux"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p class="un deux trois">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should have a green background.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107.xml new file mode 100644 index 0000000000..260bdd40c6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[*|lang|="en"], *|*[a|foo|="un-d"] { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p lang="en-us">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107b.xml new file mode 100644 index 0000000000..ebdd2e009b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-107b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[*|lang|="en"], *|*[a|foo|="un-d"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p lang="en-us">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should be unstyled.</q> +<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108.xml new file mode 100644 index 0000000000..30e354522d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on beginning with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|title^="si on"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108b.xml new file mode 100644 index 0000000000..933aee9c14 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-108b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on beginning with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|title^="si on"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109.xml new file mode 100644 index 0000000000..9f8cee6a73 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on end with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|title$="tait"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109b.xml new file mode 100644 index 0000000000..5e242f5d73 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-109b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on end with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|title$="tait"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-11.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-11.xml new file mode 100644 index 0000000000..b1c8539739 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-11.xml @@ -0,0 +1,15 @@ +<!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>Substring matching attribute selector (contains)</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[title*="bar"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p title="foobarufoo">This paragraph should have a green background because +its title attribute contains "bar"</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110.xml new file mode 100644 index 0000000000..8760fac79a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on middle with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +*|*[*|title*="on ch"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110b.xml new file mode 100644 index 0000000000..a20984ac41 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-110b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on middle with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +*|*[*|title*="on ch"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111.xml new file mode 100644 index 0000000000..f834da5485 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111.xml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[|title] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a"> +<p title="si on chantait">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111b.xml new file mode 100644 index 0000000000..8d55801a24 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-111b.xml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[|title] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a"> +<p title="si on chantait">This paragraph should have a green background</p> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112.xml new file mode 100644 index 0000000000..f335eff311 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[|title="si on chantait"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112b.xml new file mode 100644 index 0000000000..0b5b174b3a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-112b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[|title="si on chantait"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113.xml new file mode 100644 index 0000000000..c779e14650 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|q { background-color : red } +*|*[|class~="foo"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<p class="bar foo toto">This paragraph should have a green background.</p> +<address class="bar foofoo toto">This address should be unstyled.</address> +<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113b.xml new file mode 100644 index 0000000000..4cbfc6dfee --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-113b.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|q { background-color : lime ! important } +*|*[|class~="foo"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<p class="bar foo toto">This paragraph should have a green background.</p> +<address class="bar foofoo toto">This address should be unstyled.</address> +<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114.xml new file mode 100644 index 0000000000..9a7f451ee8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|q { background-color : red } +*|*[|lang|="foo-bar"], *|*[|myattr|="tat-tut"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<p lang="foo-bar">This paragraph should have a green background.</p> +<address lang="foo-b">This address should be unstyled.</address> +<address lang="foo-barbar-toto">This address should be unstyled.</address> +<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114b.xml new file mode 100644 index 0000000000..b5aab0d17d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-114b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute dash-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|q { background-color : lime ! important } +*|*[|lang|="foo-bar"], *|*[|myattr|="tat-tut"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<p lang="foo-bar">This paragraph should have a green background.</p> +<address lang="foo-b">This address should be unstyled.</address> +<address lang="foo-barbar-toto">This address should be unstyled.</address> +<q xmlns="http://www.example.org/a" myattr="tat-tut-tot">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/b" b:myattr="tat-tut-tot">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115.xml new file mode 100644 index 0000000000..4c2492bd1b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on beginning without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[|title^="si on"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115b.xml new file mode 100644 index 0000000000..9b37ed1ab8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-115b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on beginning without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[|title^="si on"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116.xml new file mode 100644 index 0000000000..e73d83db14 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on end without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[|title$="tait"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116b.xml new file mode 100644 index 0000000000..59a46a6362 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-116b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on end without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[|title$="tait"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117.xml new file mode 100644 index 0000000000..5381cec147 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on middle without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[|title*="on ch"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117b.xml new file mode 100644 index 0000000000..b88ac99a65 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-117b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Substring matching attribute selector on middle without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[|title*="on ch"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<p title="si on chantait">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should have a green background.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should be unstyled.</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-118.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-118.xml new file mode 100644 index 0000000000..823c577031 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-118.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED type element selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|l { display : block ; margin-bottom : 1em } +div.test * { background-color : red } +div.test *:not(a|p) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="test"> + <p xmlns="http://www.w3.org/1999/xhtml">This paragraph should have a green background.</p> + <p xmlns="http://www.example.org/b">This paragraph should have a green background.</p> + <p xmlns="">This paragraph should have a green background.</p> + <p xmlns="http://www.example.org/a"> + <l>This paragraph should have a green background.</l> + </p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-119.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-119.xml new file mode 100644 index 0000000000..8a4eda34b4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-119.xml @@ -0,0 +1,31 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED type element selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.test *:not(*|div) { display : block ; margin-bottom : 1em ; + background-color : red } +div.test > *:not(*|p):not(*|div) { background-color : lime } +div.stub > *:not(*|div) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="test"> +<div class="stub"> +<p>This paragraph should have a green background.</p> +<p xmlns="http://www.example.org/b">This paragraph should have a green background.</p> +<p xmlns="">This paragraph should have a green background.</p> +<p xmlns="http://www.example.org/a">This paragraph should have a green background.</p> +</div> +<address>This address should have a green background.</address> +<s xmlns="http://www.example.org/b">This paragraph should have a green background.</s> +<t xmlns="">This paragraph should have a green background.</t> +<u xmlns="http://www.example.org/a">This paragraph should have a green background.</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-120.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-120.xml new file mode 100644 index 0000000000..4f233426b2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-120.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED type element selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > * { display : block ; margin-bottom : 1em ; + background-color : red } +div.stub > *:not(|p) { background-color : lime } +div.stub > *|l > *:not(|p) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<p>This paragraph should have a green background</p> +<p xmlns="http://www.example.org/b">This paragraph should have a green background</p> +<l xmlns="http://www.example.org/b"> +<p xmlns="">This paragraph should have a + green background</p> +</l> +<p xmlns="http://www.example.org/a">This paragraph should have a green background</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-121.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-121.xml new file mode 100644 index 0000000000..4d666876cc --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-121.xml @@ -0,0 +1,28 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED universal selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { color : red ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not(a|*) { color : green } +div.stub v { color : green } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<address>This address should be in green characters.</address> +<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s> +<t xmlns="">This paragraph should be in green characters.</t> +<u xmlns="http://www.example.org/a"> +<v>This paragraph should be in green characters.</v> +</u> +</div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-122.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-122.xml new file mode 100644 index 0000000000..2353831305 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-122.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED universal selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { background-color : lime ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not(*|*) { background-color : red } +/* yes, the rule just above selects nothing... That's the point */ +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-address-p-p-p-lime-background.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<address>This address should have a green background</address> +<s xmlns="http://www.example.org/b">This paragraph should have a green background</s> +<t xmlns="">This paragraph should have a green background</t> +<u xmlns="http://www.example.org/a">This paragraph should have a green background</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123.xml new file mode 100644 index 0000000000..b9e577a059 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED universal selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { color : red ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not(|*) { color : green } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<address>This address should be in green characters.</address> +<s xmlns="http://www.example.org/b">This paragraph should be in green characters.</s> +<u xmlns="http://www.example.org/a">This paragraph should be in green characters.</u> +</div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123b.xml new file mode 100644 index 0000000000..b6dcd3a97e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-123b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED universal selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { color : green ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not(|*) { color : red ! important } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<t xmlns="">This paragraph should be in green characters.</t> +</div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124.xml new file mode 100644 index 0000000000..6c487f8af8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : red } +div.stub *:not([a|title="foo"]) {background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="foo">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q> +<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s> +<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124b.xml new file mode 100644 index 0000000000..a6fba323d2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-124b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r, *|s { background-color : lime ! important } +div.stub *:not([a|title="foo"]) {background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="foo">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="foo">This paragraph should be unstyled.</q> +<s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should have a green background.</s> +<r xmlns="http://www.example.org/b" b:title="foo">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125.xml new file mode 100644 index 0000000000..10e3ec1d84 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : red } +div.stub *|*:not([a|foo~="bar"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125b.xml new file mode 100644 index 0000000000..032a0eab06 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-125b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : lime ! important } +div.stub *|*:not([a|foo~="bar"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126.xml new file mode 100644 index 0000000000..dca13bdbf7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : red } +div.stub *|*:not([a|foo|="bar"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126b.xml new file mode 100644 index 0000000000..9dba3b1c72 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-126b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : lime ! important } +div.stub *|*:not([a|foo|="bar"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="bargain-trash">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="bar-drink-glass">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="bar-drink-glass">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127.xml new file mode 100644 index 0000000000..9ef8cd77a7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on beginning with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : red } +div.stub *|*:not([a|title^="si on"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127b.xml new file mode 100644 index 0000000000..41e88ecf65 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-127b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on beginning with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : lime ! important } +div.stub *|*:not([a|title^="si on"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="et si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128.xml new file mode 100644 index 0000000000..cb192739de --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on end with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : red } +div.stub *|*:not([a|title$="tait"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128b.xml new file mode 100644 index 0000000000..26dbce728c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-128b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on end with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : lime ! important } +div.stub *|*:not([a|title$="tait"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129.xml new file mode 100644 index 0000000000..c3dbdbaf6d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on middle with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : red } +div.stub *|*:not([a|title*="hanta"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129b.xml new file mode 100644 index 0000000000..407d6a91c5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-129b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute value selector on middle with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|s { background-color : lime ! important } +div.stub *|*:not([a|title*="hanta"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-p-lime-background-except-middle.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-13.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-13.xml new file mode 100644 index 0000000000..600426e8b9 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-13.xml @@ -0,0 +1,22 @@ +<!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>Class selectors</title> + <style type="text/css"><![CDATA[li { background-color : red } +.t1 { background-color : lime } +li.t2 { background-color : lime } +.t3 { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li class="t1">This list item should have green background because its class is "t1"</li> + <li class="t2">This list item should have green background because its class is "t2"</li> + <li class="t2"> +<span class="t33">This list item should have green background because + the inner SPAN does not match SPAN.t3</span> +</li> +</ul> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130.xml new file mode 100644 index 0000000000..e9a7672c53 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q { background-color : red } +div.stub *|*:not([*|title]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130b.xml new file mode 100644 index 0000000000..54c6c6a9c2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-130b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q { background-color : lime ! important } +div.stub *|*:not([*|title]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131.xml new file mode 100644 index 0000000000..f937a8094a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q { background-color : red } +div.stub *|*:not([*|title="si on chantait"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131b.xml new file mode 100644 index 0000000000..05a7753eac --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q { background-color : lime ! important } +div.stub *|*:not([*|title="si on chantait"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132.xml new file mode 100644 index 0000000000..f7080850ff --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p.deu, *|q { background-color : red } +div.stub html|*:not([*|class~="deux"]), + div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p class="un deux trois">This paragraph should be unstyled</p> +<p class="un deu trois">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132b.xml new file mode 100644 index 0000000000..8270be88de --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-132b.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p.deu, *|q { background-color : lime ! important } +div.stub html|*:not([*|class~="deux"]), + div.stub *|*:not(html|*):not([*|foo~="deux"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p class="un deux trois">This paragraph should be unstyled</p> +<p class="un deu trois">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:bar="un deux trois">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:foo="un second deuxieme trois">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="un deux trois">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="un deux trois">This paragraph should be unstyled.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133.xml new file mode 100644 index 0000000000..1c1b5baf57 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p.foo, *|q, *|s { background-color : red } +div.stub html|*:not([*|lang|="en"]), + div.stub *|*:not(html|*):not([a|foo|="un-d"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p lang="en-us">This paragraph should be unstyled.</p> +<p lang="fr" class="foo">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133b.xml new file mode 100644 index 0000000000..6f67b88a17 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-133b.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p.foo, *|q, *|s { background-color : lime ! important } +div.stub html|*:not([*|lang|="en"]), + div.stub *|*:not(html|*):not([a|foo|="un-d"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p lang="en-us">This paragraph should be unstyled.</p> +<p lang="fr" class="foo">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:foo="un-deux-trois">This paragraph should have a green background.</q> +<q xmlns="http://www.example.org/a" a:foo="un-second-deuxieme-trois">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:foo="un-d-trois">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:foo="un-d-trois">This paragraph should have a green background.</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134.xml new file mode 100644 index 0000000000..20f42fda60 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on beginning with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : red } +div.stub *|*:not([*|title^="si on"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si il chantait" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134b.xml new file mode 100644 index 0000000000..5a14b8f733 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-134b.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on beginning with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : lime ! important } +div.stub *|*:not([*|title^="si on"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si il chantait" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135.xml new file mode 100644 index 0000000000..842ff6573a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on end with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : red } +div.stub *|*:not([*|title$="tait"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si tu chantais" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135b.xml new file mode 100644 index 0000000000..9658c29253 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-135b.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on end with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : lime ! important } +div.stub *|*:not([*|title$="tait"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si tu chantais" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136.xml new file mode 100644 index 0000000000..ca2a6ca22d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on middle with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : red } +div.stub *|*:not([*|title*="on ch"]) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si il chantait" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136b.xml new file mode 100644 index 0000000000..94e8cb03d2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-136b.xml @@ -0,0 +1,27 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on middle with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|p.red, *|q, *|t { background-color : lime ! important } +div.stub *|*:not([*|title*="on ch"]) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-g-u-u-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<p title="si il chantait" class="red">This paragraph should have a green background.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137.xml new file mode 100644 index 0000000000..fd17088d38 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|q, *|r { display : block ; margin-bottom : 1em } +*|q { background-color : red } +div.stub *|*:not([|title]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137b.xml new file mode 100644 index 0000000000..47d5dc7b20 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-137b.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|q, *|r { display : block ; margin-bottom : 1em } +*|q { background-color : lime ! important } +div.stub *|*:not([|title]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138.xml new file mode 100644 index 0000000000..9e8f8c0e2e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : red } +div.stub *|*:not([|title="si on chantait"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138b.xml new file mode 100644 index 0000000000..7cc16fd3c3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-138b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : lime ! important } +div.stub *|*:not([|title="si on chantait"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<q xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139.xml new file mode 100644 index 0000000000..ceebe6640b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|address, *|r { background-color : red } +div.stub *|*:not([|class~="foo"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p class="bar foo toto">This paragraph should be unstyled.</p> +<address class="bar foofoo toto">This address should have a green background.</address> +<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139b.xml new file mode 100644 index 0000000000..4e727ea9c9 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-139b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute space-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|address, *|r { background-color : lime ! important } +div.stub *|*:not([|class~="foo"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p class="bar foo toto">This paragraph should be unstyled.</p> +<address class="bar foofoo toto">This address should have a green background.</address> +<q xmlns="http://www.example.org/a" class="bar foo toto">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/b" b:class="bar foo toto">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14.xml new file mode 100644 index 0000000000..29a6f20d8e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14.xml @@ -0,0 +1,28 @@ +<!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>More than one class selector</title> + <style type="text/css"><![CDATA[p { background-color : red ; border : thick solid red ; padding : 1em } +p.t1 { background-color : lime } +p.t2 { border : thick solid green } + +div { background: green; color: white; } +div.teST { background: red; color: yellow; } +div.te { background: red; color: yellow; } +div.st { background: red; color: yellow; } +div.te.st { background: red; color: yellow; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + +<p class="t1 t2">This paragraph +should have a green background and a green thick solid border because +it carries both classes t1 and t2.</p> + +<div class="test">This line +should be green.</div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140.xml new file mode 100644 index 0000000000..49c9e4bf74 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|address, *|r { background-color : red } +div.stub *|*:not([|lang|="foo-bar"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p lang="foo-bar">This paragraph should be unstyled.</p> +<address lang="foo-b">This address should have a green background.</address> +<address lang="foo-barbar-toto">This address should have a green background.</address> +<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140b.xml new file mode 100644 index 0000000000..a39bd7d773 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-140b.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute dash-separated value selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|address, *|q, *|r { display : block ; margin-bottom : 1em } +*|address, *|r { background-color : lime ! important } +div.stub *|*:not([|lang|="foo-bar"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p lang="foo-bar">This paragraph should be unstyled.</p> +<address lang="foo-b">This address should have a green background.</address> +<address lang="foo-barbar-toto">This address should have a green background.</address> +<q xmlns="http://www.example.org/a" lang="foo-bar">This paragraph should be unstyled.</q> +<r xmlns="http://www.example.org/b" b:lang="foo-bar">This paragraph should have a green background.</r> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141.xml new file mode 100644 index 0000000000..d69a2722fc --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on beginning without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : red } +div.stub *|*:not([|title^="si on"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141b.xml new file mode 100644 index 0000000000..184cb4e9da --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-141b.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on beginning without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : lime ! important } +div.stub *|*:not([|title^="si on"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" b:ti="si on chantait">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142.xml new file mode 100644 index 0000000000..230f49032d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on end without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : red } +div.stub *|*:not([|title$="tait"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142b.xml new file mode 100644 index 0000000000..a107e2a4ea --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-142b.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on end without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : lime ! important } +div.stub *|*:not([|title$="tait"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143.xml new file mode 100644 index 0000000000..3bcd4f23c7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on middle without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : red } +div.stub *|*:not([|title*="on ch"]) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143b.xml new file mode 100644 index 0000000000..3c86729656 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-143b.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Substring matching attribute selector on middle without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s, *|t{ display : block ; margin-bottom : 1em } +*|q, *|s, *|t { background-color : lime ! important } +div.stub *|*:not([|title*="on ch"]) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-u-g-u-g-g.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> +<div class="stub"> +<p title="si on chantait">This paragraph should be unstyled.</p> +<q xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q> +<r xmlns="http://www.example.org/a" title="si on chantait">This paragraph should be unstyled.</r> +<s xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should have a green background.</s> +<t xmlns="http://www.example.org/b" title="si nous chantions">This paragraph should have a green background.</t> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-144.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-144.xml new file mode 100644 index 0000000000..cbc7d4c16c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-144.xml @@ -0,0 +1,15 @@ +<!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>NEGATED :enabled:disabled pseudo-classes</title> + <style type="text/css"><![CDATA[div :not(:enabled):not(:disabled) { background: lime; } +p { background : red;}]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <p>This paragraph should have a green background.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145a.xml new file mode 100644 index 0000000000..ff15de6779 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145a.xml @@ -0,0 +1,33 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-of-type() pseudo-class with hidden elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=odd] { background: red; } + line:nth-of-type(odd) { background: lime; } + [hidden] { display: none; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd" hidden="hidden">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even" hidden="hidden">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even" hidden="hidden">This line should be unstyled.</line> + <line type="odd" hidden="hidden">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145b.xml new file mode 100644 index 0000000000..fb57366b69 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-145b.xml @@ -0,0 +1,33 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-of-type() pseudo-class with hidden elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=odd] { background: lime ! important; } + line:nth-of-type(odd) { background: red; } + [hidden] { display: none; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd" hidden="hidden">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even" hidden="hidden">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + <line type="even" hidden="hidden">This line should be unstyled.</line> + <line type="odd" hidden="hidden">This line should be green.</line> + <line type="even">This line should be unstyled.</line> + <line type="odd">This line should be green.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146a.xml new file mode 100644 index 0000000000..8704f09e6d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146a.xml @@ -0,0 +1,39 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-child() pseudo-class with hidden elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=match] { background: red; } + line:nth-child(3n-1) { background: lime; } + [hidden] { display: none; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="match" hidden="hidden">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146b.xml new file mode 100644 index 0000000000..a7b28b4e5c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-146b.xml @@ -0,0 +1,39 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-child() pseudo-class with hidden elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=match] { background: lime ! important; } + line:nth-child(3n-1) { background: red; } + [hidden] { display: none; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="match" hidden="hidden">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147a.xml new file mode 100644 index 0000000000..dcf600bf80 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147a.xml @@ -0,0 +1,39 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-last-of-type() pseudo-class with collapsed elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=match] { background: red; } + line:nth-last-of-type(3n-1) { background: lime; } + [hidden] { visibility: collapse; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match" hidden="hidden">This line should be green.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147b.xml new file mode 100644 index 0000000000..fdea6da425 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-147b.xml @@ -0,0 +1,39 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:nth-last-of-type() pseudo-class with collapsed elements</title> + <style type="text/css"><![CDATA[ + line { display: block; } + [type~=match] { background: lime ! important; } + line:nth-last-of-type(3n-1) { background: red; } + [hidden] { visibility: collapse; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <test xmlns="http://www.example.org/"> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match" hidden="hidden">This line should be green.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="" hidden="hidden">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + <line type="">This line should be unstyled.</line> + <line type="match">This line should be green.</line> + <line type="">This line should be unstyled.</line> + </test> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-148.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-148.xml new file mode 100644 index 0000000000..51f9858ad8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-148.xml @@ -0,0 +1,16 @@ +<!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>:empty pseudo-class and text</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + p:empty { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149.xml new file mode 100644 index 0000000000..7b10e6296c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149.xml @@ -0,0 +1,18 @@ +<!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>:empty pseudo-class and empty elements</title> + <style type="text/css"><![CDATA[ + address:empty { background: lime; } + address { background: red; margin: 0; height: 1em; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background-offset.xht"/> + </head> + <body> + <address></address> + <div class="text">This line should have a green background.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149b.xml new file mode 100644 index 0000000000..7b10e6296c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-149b.xml @@ -0,0 +1,18 @@ +<!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>:empty pseudo-class and empty elements</title> + <style type="text/css"><![CDATA[ + address:empty { background: lime; } + address { background: red; margin: 0; height: 1em; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background-offset.xht"/> + </head> + <body> + <address></address> + <div class="text">This line should have a green background.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14b.xml new file mode 100644 index 0000000000..816a13b448 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14b.xml @@ -0,0 +1,22 @@ +<!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>More than one class selector</title> + <style type="text/css"><![CDATA[ +p { background: green; color: white; } +.t1.fail { background: red; color: yellow; } +.fail.t1 { background: red; color: yellow; } +.t2.fail { background: red; color: yellow; } +.fail.t2 { background: red; color: yellow; } +/* Note: This is a valid test even per CSS1, since in CSS1 those rules + are invalid and should be dropped. */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-background.xht"/> + </head> + <body> + <p class="t1">This line should be green.</p> + <p class="t1 t2">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14c.xml new file mode 100644 index 0000000000..9f92f7912d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14c.xml @@ -0,0 +1,21 @@ +<!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>More than one class selector</title> + <style type="text/css"><![CDATA[ +p { background: red; color: yellow; } +p.t1.t2 { background: green; color: white; } +div { background: green; color: white; } +div.t1 { background: red; color: yellow; } +address { background: red; color: yellow; } +address.t5.t5 { background: green; color: white; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p class="t1 t2">This line should be green.</p> + <div class="t3">This line should be green.</div> + <address class="t4 t5 t6">This line should be green.</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14d.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14d.xml new file mode 100644 index 0000000000..411e3cc2b6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14d.xml @@ -0,0 +1,18 @@ +<!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>NEGATED More than one class selector</title> + <style type="text/css"><![CDATA[ +p { background: green; color: white; } +.t1:not(.t2) { background: red; color: yellow; } +:not(.t2).t1 { background: red; color: yellow; } +.t2:not(.t1) { background: red; color: yellow; } +:not(.t1).t2 { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p class="t1 t2">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14e.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14e.xml new file mode 100644 index 0000000000..4538de38e4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-14e.xml @@ -0,0 +1,21 @@ +<!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>NEGATED More than one class selector</title> + <style type="text/css"><![CDATA[ +p { background: green; color: white; } +p:not(.t1):not(.t2) { background: red; color: yellow; } +div { background: red; color: yellow; } +div:not(.t1) { background: green; color: white; } +address { background: green; color: white; } +address:not(.t5):not(.t5) { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p class="t1 t2">This line should be green.</p> + <div class="t3">This line should be green.</div> + <address class="t4 t5 t6">This line should be green.</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15.xml new file mode 100644 index 0000000000..73b340e27b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15.xml @@ -0,0 +1,21 @@ +<!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>ID selectors</title> + <style type="text/css"><![CDATA[li { background-color : red } +#t1 { background-color : lime } +li#t2 { background-color : lime } +li#t3 { background-color : lime } +#t4 { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li id="t1">This list item should have a green background. because its ID is "t1"</li> + <li id="t2">This list item should have a green background. because its ID is "t2"</li> + <li id="t3"><span id="t44">This list item should have a green background. because the inner SPAN does not match "#t4"</span></li> +</ul> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-150.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-150.xml new file mode 100644 index 0000000000..49a7807b10 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-150.xml @@ -0,0 +1,18 @@ +<!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>:empty pseudo-class and XML/SGML constructs</title> + <style type="text/css"><![CDATA[ + address:empty { background: lime; } + address { background: red; margin: 0; height: 1em; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <address><!-- --><?test random PI?></address> + <div class="text">This line should have a green background.</div> + <p>(Note: This test is based on unpublished errata.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-151.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-151.xml new file mode 100644 index 0000000000..46c25dc0a8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-151.xml @@ -0,0 +1,18 @@ +<!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>:empty pseudo-class and whitespace</title> + <style type="text/css"><![CDATA[ + address { background: lime; margin: 0; height: 1em; } + address:empty { background: red; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background-offset.xht"/> + </head> + <body> + <address> </address> + <div class="text">This line should have a green background.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-152.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-152.xml new file mode 100644 index 0000000000..680a0a9aef --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-152.xml @@ -0,0 +1,18 @@ +<!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>:empty pseudo-class and elements</title> + <style type="text/css"><![CDATA[ + address { background: lime; margin: 0; height: 1em; } + address:empty { background: red; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background-offset.xht"/> + </head> + <body> + <address><span></span></address> + <div class="text">This line should have a green background.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-153.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-153.xml new file mode 100644 index 0000000000..45f65fb598 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-153.xml @@ -0,0 +1,18 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>:empty pseudo-class and CDATA</title> + <style type="text/css"><![CDATA[ + address { background: red; margin: 0; height: 1em; display: block; } + address:empty { background: lime; } + .text { margin: -1em 0 0 0; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <address xmlns="http://tests.example.org/xml-only/"><![CDATA[]]></address> + <div class="text">This line should have a green background.</div> + <p>(Note: This test is based on unpublished errata.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-154.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-154.xml new file mode 100644 index 0000000000..951f107929 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-154.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + p, { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155.xml new file mode 100644 index 0000000000..b79e92a52c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + .5cm { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="5cm">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155a.xml new file mode 100644 index 0000000000..3b3d43c809 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155a.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + .\5cm { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="5cm">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155b.xml new file mode 100644 index 0000000000..d0f663ccfb --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155b.xml @@ -0,0 +1,21 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + .two\ words { background: red; } + + /* the "." and "~=" forms match on a space separated list of words. + In such a list, a word containing a space can never match, since it + would by definition be two words. */ + +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="two words">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155c.xml new file mode 100644 index 0000000000..85973ec96b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155c.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + .one.word { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="one.word">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155d.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155d.xml new file mode 100644 index 0000000000..ca6ba51c7e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-155d.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + .one\.word { background: lime; } + p { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="one.word">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156.xml new file mode 100644 index 0000000000..4717fb8a39 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + foo % address, p { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156b.xml new file mode 100644 index 0000000000..28a6c985bb --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156b.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + foo % address, p { background: red; } + p { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156c.xml new file mode 100644 index 0000000000..cb888e1eb0 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-156c.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + foo % address, p { background: red ! important; } + p { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-157.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-157.xml new file mode 100644 index 0000000000..037682791a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-157.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + [*=test] { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="test">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-158.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-158.xml new file mode 100644 index 0000000000..5bb541dba2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-158.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + [*|*=test] { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p class="test">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-159.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-159.xml new file mode 100644 index 0000000000..3504398dbc --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-159.xml @@ -0,0 +1,16 @@ +<!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>Syntax and parsing of new pseudo-elements</title> + <style type="text/css"><![CDATA[ + ::selection { background: lime; } + :selection { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <p>Try selecting some text in this document. It should be have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15b.xml new file mode 100644 index 0000000000..b22397ef54 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-15b.xml @@ -0,0 +1,21 @@ +<!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>Multiple ID selectors</title> + <style type="text/css"><![CDATA[ +p { background: green; color: white; } +#test#fail { background: red; color: yellow; } +#fail#test { background: red; color: yellow; } +#fail { background: red; color: yellow; } +div { background: red; color: yellow; } +#pass#pass { background: green; color: white; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-background.xht"/> + </head> + <body> + <p id="test">This line should be green.</p> + <div id="pass">This line should be green.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-16.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-16.xml new file mode 100644 index 0000000000..48122c26d8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-16.xml @@ -0,0 +1,18 @@ +<!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>:link pseudo-class</title> + <style type="text/css"><![CDATA[p.test a { background-color : red } +p.test *:link { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" history" /> + </head> + <body> +<p class="test"> +<a href="http://unvisited.example.org/css3-modsel-16/">This link should have green background.</a> +(Don't follow this link.) +</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-160.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-160.xml new file mode 100644 index 0000000000..f73a0ddd03 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-160.xml @@ -0,0 +1,18 @@ +<!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>Syntax and parsing of unknown pseudo-classes</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + p:subject { background: red; } /* this is not valid CSS, and if UAs + implemented the experimental :subject pseudo-class they should have + used the :-vnd-ident syntax. */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-161.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-161.xml new file mode 100644 index 0000000000..888c6f436b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-161.xml @@ -0,0 +1,47 @@ +<!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>Syntax and parsing of unknown pseudo-classes and pseudo-elements</title> + <style type="text/css"><![CDATA[ + p { background: lime; } + p * { background: lime; } + p > * { background: lime; } + p + * { background: lime; } + p ~ * { background: lime; } + + /* let's try some pseudos that are not valid CSS but are likely to + be implemented as extensions in some UAs. These should not be + recognised, as UAs implementing such extensions should use the + :-vnd-ident syntax. */ + + :canvas { background: red; } + :viewport { background: red; } + :window { background: red; } + :menu { background: red; } + :table { background: red; } + :select { background: red; } + ::canvas { background: red; } + ::viewport { background: red; } + ::window { background: red; } + ::menu { background: red; } + ::table { background: red; } + ::select { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <p>This line should have a green background.</p> + <p> + UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green). + <select size="1"> + <option>This should</option> + <option>have a green</option> + <option>background.</option> + </select> + </p> + <table><tr><td>This line should have a green background (or it might be unstyled).</td></tr></table> + <!-- only allowed to be unstyled if + and ~ are not supported --> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166.xml new file mode 100644 index 0000000000..f1d258dc37 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166.xml @@ -0,0 +1,15 @@ +<!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>:first-letter with ::first-letter</title> + <style type="text/css"><![CDATA[ + p:first-letter { background-color: red; } + p::first-letter { background-color: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>The first letter of this paragraph should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166a.xml new file mode 100644 index 0000000000..3ab4942e0d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-166a.xml @@ -0,0 +1,15 @@ +<!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>:first-letter with ::first-letter</title> + <style type="text/css"><![CDATA[ + p::first-letter { background-color: red; } + p:first-letter { background-color: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>The first letter of this paragraph should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167.xml new file mode 100644 index 0000000000..2d86aafaa9 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167.xml @@ -0,0 +1,15 @@ +<!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>:first-line with ::first-line</title> + <style type="text/css"><![CDATA[ + p:first-line { background-color: red; } + p::first-line { background-color: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>The first line of this paragraph should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167a.xml new file mode 100644 index 0000000000..d312fc2573 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-167a.xml @@ -0,0 +1,15 @@ +<!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>:first-line with ::first-line</title> + <style type="text/css"><![CDATA[ + p::first-line { background-color: red; } + p:first-line { background-color: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>The first line of this paragraph should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168.xml new file mode 100644 index 0000000000..a0291aba94 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168.xml @@ -0,0 +1,17 @@ +<!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>:before with ::before</title> + <style type="text/css"><![CDATA[ + span:before { background-color: red; content: 'FAILED'; } + span::before { background-color: lime; content: 'PASSED'; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-test-has-passed-desc.xht"/> + </head> + <body> + <p>This test has <span></span>.</p> + <p>(If the previous line just reads "This test has ." then this test has failed.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168a.xml new file mode 100644 index 0000000000..7c008b02ce --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-168a.xml @@ -0,0 +1,17 @@ +<!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>:before with ::before</title> + <style type="text/css"><![CDATA[ + span::before { background-color: red; content: 'FAILED'; } + span:before { background-color: lime; content: 'PASSED'; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-test-has-passed-desc.xht"/> + </head> + <body> + <p>This test has <span></span>.</p> + <p>(If the previous line just reads "This test has ." then this test has failed.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169.xml new file mode 100644 index 0000000000..ae6433cc04 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169.xml @@ -0,0 +1,17 @@ +<!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>:after with ::after</title> + <style type="text/css"><![CDATA[ + span:after { background-color: red; content: 'FAILED'; } + span::after { background-color: lime; content: 'PASSED'; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-test-has-passed-desc.xht"/> + </head> + <body> + <p>This test has <span></span>.</p> + <p>(If the previous line just reads "This test has ." then this test has failed.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169a.xml new file mode 100644 index 0000000000..1e2721ce0a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-169a.xml @@ -0,0 +1,17 @@ +<!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>:after with ::after</title> + <style type="text/css"><![CDATA[ + span::after { background-color: red; content: 'FAILED'; } + span:after { background-color: lime; content: 'PASSED'; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-test-has-passed-desc.xht"/> + </head> + <body> + <p>This test has <span></span>.</p> + <p>(If the previous line just reads "This test has ." then this test has failed.)</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-17.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-17.xml new file mode 100644 index 0000000000..e06fb70d58 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-17.xml @@ -0,0 +1,18 @@ +<!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>:visited pseudo-class</title> + <style type="text/css"><![CDATA[p.test a { background-color : red } +p.test *:visited { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" history" /> + </head> + <body> +<p class="test"> +<a href="http://www.w3.org/">You should see a green background assigned by the anchor.</a> +(Note: You must have visited http://www.w3.org/ for this test to be valid.) +</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170.xml new file mode 100644 index 0000000000..94eab69ece --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170.xml @@ -0,0 +1,16 @@ +<!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>Long chains of selectors</title> + <style type="text/css"><![CDATA[ + span { color: red; } + span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span, span { color: green } /* 2049 */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p><span>This line should be green.</span></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170a.xml new file mode 100644 index 0000000000..f6a3b84c21 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170a.xml @@ -0,0 +1,16 @@ +<!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>Long chains of selectors</title> + <style type="text/css"><![CDATA[ + .span { color: red; } + .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span, .span { color: green } /* 2049 */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p class="span">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170b.xml new file mode 100644 index 0000000000..49915dc8f2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170b.xml @@ -0,0 +1,16 @@ +<!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>Long chains of selectors</title> + <style type="text/css"><![CDATA[ + .span { color: red; } + .span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span.span { color: green } /* 2049 */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p class="span">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170c.xml new file mode 100644 index 0000000000..4c9e105e92 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170c.xml @@ -0,0 +1,16 @@ +<!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>Long chains of selectors</title> + <style type="text/css"><![CDATA[ + p.span { color: red; } + p:not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span):not(.span) { color: green } /* 2049 */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p>This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170d.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170d.xml new file mode 100644 index 0000000000..12c6a2221e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-170d.xml @@ -0,0 +1,16 @@ +<!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>Long chains of selectors</title> + <style type="text/css"><![CDATA[ + p { color: red; } + p:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child:first-child { color: green } /* 2049 */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p>This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-171.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-171.xml new file mode 100644 index 0000000000..aa3b86e82f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-171.xml @@ -0,0 +1,17 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Classes: XHTML global class attribute</title> + <style type="text/css"><![CDATA[ + p { color: green; } + .fail { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <p xmlns:xhtml="http://www.w3.org/1999/xhtml"> + <span xhtml:class="fail">This should be green.</span> + </p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172a.xml new file mode 100644 index 0000000000..fca9c6d4b7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172a.xml @@ -0,0 +1,30 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Namespaced attribute selectors</title> + <style type="text/css"><![CDATA[ + tests, tests * { display: block; color: green; } + testA[|attribute] { color: red; } + testB[|attribute="fail"] { color: red; } + testC[|attribute~="fail"] { color: red; } + testD[|attribute^="fail"] { color: red; } + testE[|attribute*="fail"] { color: red; } + testF[|attribute$="fail"] { color: red; } + testG[|attribute|="fail"] { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/seven-green-divs.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA test:attribute="fail">This should be green.</testA> + <testB test:attribute="fail">This should be green.</testB> + <testC test:attribute="fail">This should be green.</testC> + <testD test:attribute="fail">This should be green.</testD> + <testE test:attribute="fail">This should be green.</testE> + <testF test:attribute="fail">This should be green.</testF> + <testG test:attribute="fail">This should be green.</testG> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172b.xml new file mode 100644 index 0000000000..ec93920fbb --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-172b.xml @@ -0,0 +1,31 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Namespaced attribute selectors</title> + <style type="text/css"><![CDATA[ + @namespace url(http://css.example.net/); + tests, tests * { display: block; color: green; } + testA[|attribute] { color: red; } + testB[|attribute="fail"] { color: red; } + testC[|attribute~="fail"] { color: red; } + testD[|attribute^="fail"] { color: red; } + testE[|attribute*="fail"] { color: red; } + testF[|attribute$="fail"] { color: red; } + testG[|attribute|="fail"] { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/seven-green-divs.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA test:attribute="fail">This should be green.</testA> + <testB test:attribute="fail">This should be green.</testB> + <testC test:attribute="fail">This should be green.</testC> + <testD test:attribute="fail">This should be green.</testD> + <testE test:attribute="fail">This should be green.</testE> + <testF test:attribute="fail">This should be green.</testF> + <testG test:attribute="fail">This should be green.</testG> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173a.xml new file mode 100644 index 0000000000..b75f8309c7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173a.xml @@ -0,0 +1,30 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Namespaced attribute selectors</title> + <style type="text/css"><![CDATA[ + tests, tests * { display: block; color: red; } + testA[*|attribute] { color: green; } + testB[*|attribute="pass"] { color: green; } + testC[*|attribute~="pass"] { color: green; } + testD[*|attribute^="pass"] { color: green; } + testE[*|attribute*="pass"] { color: green; } + testF[*|attribute$="pass"] { color: green; } + testG[*|attribute|="pass"] { color: green; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/seven-green-divs.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA test:attribute="pass">This should be green.</testA> + <testB test:attribute="pass">This should be green.</testB> + <testC test:attribute="pass">This should be green.</testC> + <testD test:attribute="pass">This should be green.</testD> + <testE test:attribute="pass">This should be green.</testE> + <testF test:attribute="pass">This should be green.</testF> + <testG test:attribute="pass">This should be green.</testG> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173b.xml new file mode 100644 index 0000000000..7769701a9b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-173b.xml @@ -0,0 +1,30 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Namespaced attribute selectors</title> + <style type="text/css"><![CDATA[ + tests, tests * { display: block; color: red; } + testA[*|attribute] { color: green; } + testB[*|attribute="pass"] { color: green; } + testC[*|attribute~="pass"] { color: green; } + testD[*|attribute^="pass"] { color: green; } + testE[*|attribute*="pass"] { color: green; } + testF[*|attribute$="pass"] { color: green; } + testG[*|attribute|="pass"] { color: green; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/seven-green-divs.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA attribute="pass">This should be green.</testA> + <testB attribute="pass">This should be green.</testB> + <testC attribute="pass">This should be green.</testC> + <testD attribute="pass">This should be green.</testD> + <testE attribute="pass">This should be green.</testE> + <testF attribute="pass">This should be green.</testF> + <testG attribute="pass">This should be green.</testG> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174a.xml new file mode 100644 index 0000000000..25e23c5272 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174a.xml @@ -0,0 +1,19 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute selectors with multiple attributes</title> + <style type="text/css"><![CDATA[ + tests, tests * { display: block; color: red; } + testA[*|attribute="pass"] { color: green; } + testB[*|attribute="pass"] { color: green; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA attribute="pass" test:attribute="fail">This should be green.</testA> + <testB attribute="fail" test:attribute="pass">This should be green.</testB> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174b.xml new file mode 100644 index 0000000000..3a4d0a5e3a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-174b.xml @@ -0,0 +1,19 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute selectors with multiple attributes</title> + <style type="text/css"><![CDATA[ + tests, tests * { display: block; color: green } + testA:not([*|attribute="pass"]) { color: red; } + testB:not([*|attribute="pass"]) { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/"> + <testA attribute="pass" test:attribute="fail">This should be green.</testA> + <testB attribute="fail" test:attribute="pass">This should be green.</testB> + </tests> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175a.xml new file mode 100644 index 0000000000..ea4009e820 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175a.xml @@ -0,0 +1,16 @@ +<!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>Parsing: Numbers in classes</title> + <style type="text/css"><![CDATA[ + p { color: green; } + .13 { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p class="13">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175b.xml new file mode 100644 index 0000000000..52ff65696b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175b.xml @@ -0,0 +1,16 @@ +<!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>Parsing: Numbers in classes</title> + <style type="text/css"><![CDATA[ + p { color: green; } + .\13 { color: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p class="13">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175c.xml new file mode 100644 index 0000000000..9613473209 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-175c.xml @@ -0,0 +1,16 @@ +<!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>Parsing: Numbers in classes</title> + <style type="text/css"><![CDATA[ + p { color: red; } + .\31 \33 { color: green; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p class="13">This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-176.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-176.xml new file mode 100644 index 0000000000..66c85b40f5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-176.xml @@ -0,0 +1,23 @@ +<!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>Combinations: classes and IDs</title> + <style type="text/css"><![CDATA[ +p { background: red; color: yellow; } +p:not(#other).class:not(.fail).test#id#id { background: green; color: white; } +div { background: green; color: white; } +div:not(#theid).class:not(.fail).test#theid#theid { background: red; color: yellow; } +div:not(#other).notclass:not(.fail).test#theid#theid { background: red; color: yellow; } +div:not(#other).class:not(.test).test#theid#theid { background: red; color: yellow; } +div:not(#other).class:not(.fail).nottest#theid#theid { background: red; color: yellow; } +div:not(#other).class:not(.fail).nottest#theid#other { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-background.xht"/> + </head> + <body> + <p id="id" class="class test">This line should be green.</p> + <div id="theid" class="class test">This line should be green.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177a.xml new file mode 100644 index 0000000000..09ea141d64 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177a.xml @@ -0,0 +1,15 @@ +<!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>Parsing : vs ::</title> + <style type="text/css"><![CDATA[ + p:selection { color: yellow; background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <p>When you select this text, it shouldn't go red.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177b.xml new file mode 100644 index 0000000000..ecba2cde47 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-177b.xml @@ -0,0 +1,18 @@ +<!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>Parsing : vs ::</title> + <style type="text/css"><![CDATA[ + div { color: green; } + p::first-child { color: yellow; background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <div> + <p>This line should be green.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-178.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-178.xml new file mode 100644 index 0000000000..b3d59b6e17 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-178.xml @@ -0,0 +1,19 @@ +<!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>Parsing: :not and pseudo-elements</title> + <style type="text/css"><![CDATA[ + div { color: green; } + p:not(:first-line) { color: yellow; background: red; } + p:not(:after) { color: yellow; background: red; content: ' THIS TEST HAS FAILED! '; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <div> + <p>This line should be green.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179.xml new file mode 100644 index 0000000000..d63153c859 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179.xml @@ -0,0 +1,17 @@ +<!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>::first-line on inlines</title> + <style type="text/css"><![CDATA[ + p { color: green; } + span:first-line { background: red; color: yellow; font-size: 4em; } + span::first-line { background: red; color: yellow; font-size: 4em; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-green-color.xht"/> + </head> + <body> + <p><span>This line should be green.</span></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179a.xml new file mode 100644 index 0000000000..a1783fbc4a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-179a.xml @@ -0,0 +1,16 @@ +<!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>::first-line after <br></title> + <style type="text/css"><![CDATA[ + p { color: green; } + p:first-line { background: red; color: yellow; font-size: 4em; } + p::first-line { background: red; color: yellow; font-size: 4em; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p><br></br>This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18.xml new file mode 100644 index 0000000000..97443c66cf --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18.xml @@ -0,0 +1,61 @@ +<!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>:hover pseudo-class</title> + <style type="text/css"><![CDATA[p:hover { background-color : lime } +a:hover { background-color : lime } + +tr:hover { background-color : green } +td:hover { background-color : lime } + +table { border-spacing: 5px; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p>The background color of this paragraph should turn to green when + the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p> +<address>The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address> +<table> + <tbody> + <tr> + <td>The cells in</td> + <td>this table</td> + <td>should go</td> + </tr> + <tr> + <td>green when</td> + <td>you hover</td> + <td>the pointing</td> + </tr> + <tr> + <td>device over</td> + <td>them (<strong>here</strong>).</td> + <td></td> + </tr> + <tr> + <td>The rows in</td> + <td>this table</td> + <td>should go</td> + </tr> + <tr> + <td>dark green</td> + <td>when the</td> + <td>pointing device</td> + </tr> + <tr> + <td>is over the</td> + <td>cells <strong>there</strong>:</td> + <td></td> <!-- remove this cell to make an evil test; row should still go green, but cell should not --> + </tr> + <tr> + <td>And <strong>here</strong>:</td> + <td></td> + <td>(blank cells).</td> + </tr> + </tbody> +</table> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-180a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-180a.xml new file mode 100644 index 0000000000..d4bf31c619 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-180a.xml @@ -0,0 +1,16 @@ +<!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>::first-letter after <br></title> + <style type="text/css"><![CDATA[ + p { color: green; } + p:first-letter { background: red; color: yellow; font-size: 4em; } + p::first-letter { background: red; color: yellow; font-size: 4em; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p><br></br>This line should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-181.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-181.xml new file mode 100644 index 0000000000..97fde125ea --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-181.xml @@ -0,0 +1,35 @@ +<!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>Case sensitivity</title> + <style type="text/css"><![CDATA[ + .cs { color: green; } + .cs P { background: red; color: yellow; } + .cs .a { background: red; color: yellow; } + .cs .span1 span { background: red; color: yellow; } + .cs .span2 { color: red; } + .cs .span2 SPAN { color: green; } + .cs .span2 span { background: red; color: yellow; } + .ci { color: red; } + .ci P { background: green; color: white; } + .ci .a { background: green; color: white; } + .ci .span1 span { background: green; color: white; } + .ci .span2 SPAN { background: green; color: white; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div> + + <div class="cs"> + <p>This line should be green.</p> + <p class="A">This line should be green.</p> + <p class="span1"><SPAN>This line should be green.</SPAN></p> + <p class="span2"><SPAN>This line should be green.</SPAN></p> + </div> + + +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-182.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-182.xml new file mode 100644 index 0000000000..293c11b780 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-182.xml @@ -0,0 +1,19 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Namespaces and \: in selectors</title> + <style type="text/css"><![CDATA[ +p { color: green; } +foo\:bar { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p> +<foo:bar xmlns:foo="http://www.example.org/"> +This text should be green. +</foo:bar> +</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-183.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-183.xml new file mode 100644 index 0000000000..022df8f118 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-183.xml @@ -0,0 +1,22 @@ +<!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>Syntax and parsing of class selectors</title> + <style type="text/css"><![CDATA[ +p { color: green; } +..test { background: red; color: yellow; } +.foo..quux { background: red; color: yellow; } +.bar. { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p class="test">This text should be green.</p> +<p class=".test">This text should be green.</p> +<p class="foo">This text should be green.</p> +<p class="foo quux">This text should be green.</p> +<p class="foo quux">This text should be green.</p> +<p class=" bar ">This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184-ref.xht b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184-ref.xht new file mode 100644 index 0000000000..8ffc002f9b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184-ref.xht @@ -0,0 +1,13 @@ +<!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>Ref: Two lime lines</title> + <style type="text/css"> + p { color: lime; } + </style> + </head> + <body> + <p>This text should be green.</p> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184a.xml new file mode 100644 index 0000000000..427fca4ec7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184a.xml @@ -0,0 +1,17 @@ +<!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>Ends-with attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: lime; } +p[class$=""] { color: red; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184b.xml new file mode 100644 index 0000000000..eafd50fabc --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184b.xml @@ -0,0 +1,17 @@ +<!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>Starts-with attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: lime; } +p[class^=""] { color: red; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184c.xml new file mode 100644 index 0000000000..75ce2fd2b5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184c.xml @@ -0,0 +1,17 @@ +<!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>Contains attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: lime; } +p[class*=""] { color: red; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184d.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184d.xml new file mode 100644 index 0000000000..5115ddf03a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184d.xml @@ -0,0 +1,17 @@ +<!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>NEGATED ends-with attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: red; } +p:not([class$=""]) { color: lime; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184e.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184e.xml new file mode 100644 index 0000000000..bb455da782 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184e.xml @@ -0,0 +1,17 @@ +<!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>NEGATED starts-with attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: red; } +p:not([class^=""]) { color: lime; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184f.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184f.xml new file mode 100644 index 0000000000..7c939c31f5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-184f.xml @@ -0,0 +1,17 @@ +<!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>NEGATED contains attribute selector with empty value</title> + <style type="text/css"><![CDATA[ +p { color: red; } +p:not([class*=""]) { color: lime; } +]]></style> + <link rel="author" title="Lachlan Hunt" href="http://lachy.id.au/about/contact"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="css3-modsel-184-ref.xht"/> + </head> + <body> +<p class="">This text should be green.</p> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18a.xml new file mode 100644 index 0000000000..da5d12dc88 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18a.xml @@ -0,0 +1,25 @@ +<!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>:hover pseudo-class on links</title> + <style type="text/css"><![CDATA[ +p { color: navy; } + +.a a:hover { background: green; color: white; } + +.b a:hover { background: red; color: yellow; } +.b a:link { background: green; color: white; } + +.c :link { background: green; color: white; } +.c :visited:hover { background: red; color: yellow; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p class="a">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</p> +<p class="b">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should <strong>remain green when you hover it</strong>.</p> +<p class="c">The background color of <a href="http://link.example.com/">this anchor (<strong>here</strong>)</a> should <strong>remain green when the pointing device hovers over it</strong> (do not follow that link).</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18b.xml new file mode 100644 index 0000000000..b8dc445f98 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18b.xml @@ -0,0 +1,20 @@ +<!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>:hover pseudo-class</title> + <style type="text/css"><![CDATA[div:hover > p:first-child { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <div> + <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br></br><strong>This text.</strong></p> + <p>This text.</p> + <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table> + <p><sub>This text.</sub></p> + <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18c.xml new file mode 100644 index 0000000000..77fba265b9 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-18c.xml @@ -0,0 +1,16 @@ +<!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>:hover pseudo-class on links</title> + <style type="text/css"><![CDATA[ +:link, :visited { color: navy; text-decoration: none; } +:link:hover span { background-color : lime } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <p><a href="#foo">Hover <strong>here</strong> and the background of <span>this text should go green</span>.</a></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19.xml new file mode 100644 index 0000000000..79f23a5084 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19.xml @@ -0,0 +1,16 @@ +<!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>:active pseudo-class</title> + <style type="text/css"><![CDATA[a:active { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p>The background color of <a href="#foo">the anchor</a> + should turn to green when it is activated and come back to + normal when it is released.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19b.xml new file mode 100644 index 0000000000..48ae456ca3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-19b.xml @@ -0,0 +1,13 @@ +<!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>:active pseudo-class on controls</title> + <style type="text/css"><![CDATA[button:active { background: green; color: white; }]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p><button>Activating (e.g. holding the mouse button down on) this button should make it go green.</button></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-2.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-2.xml new file mode 100644 index 0000000000..895fea32c9 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-2.xml @@ -0,0 +1,13 @@ +<!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>Type element selectors</title> + <style type="text/css"><![CDATA[address { background-color: lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<address>This address element should have a green background.</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-20.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-20.xml new file mode 100644 index 0000000000..7d1288c9f2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-20.xml @@ -0,0 +1,16 @@ +<!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>:focus pseudo-class</title> + <style type="text/css"><![CDATA[a:focus { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p>The background color of <a href="#foo">anchors</a> + in this page should turn <a href="#foo">to green</a> when they have the + <a href="#foo">focus</a>.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21.xml new file mode 100644 index 0000000000..5c53092247 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21.xml @@ -0,0 +1,24 @@ +<!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>:target pseudo-class</title> + <style type="text/css"><![CDATA[p:target { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p id="first">This paragraph should be unstyled. + The background of the following paragraph should become green when + you follow <a href="#second">this link</a>.</p> +<p id="second">This paragraph should initially be unstyled. + It should become green when you select the link above. When you select + <a href="#third">this link</a>, it should return to being unstyled and the + background of the paragraph below should become green.</p> +<p id="third">This paragraph should initially be unstyled. + It should become green when you select the link above. When you follow + <a href="#missing">this link</a>, the three paragraphs + should all return to being unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21b.xml new file mode 100644 index 0000000000..3274ade1d3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21b.xml @@ -0,0 +1,14 @@ +<!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>:target pseudo-class</title> + <style type="text/css"><![CDATA[p { background-color: lime; } +p:target { background-color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>This paragraph should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21c.xml new file mode 100644 index 0000000000..18b5cf1900 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-21c.xml @@ -0,0 +1,14 @@ +<!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>:target pseudo-class</title> + <style type="text/css"><![CDATA[:root { background-color: green; } +:target { background-color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p>This page should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-22.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-22.xml new file mode 100644 index 0000000000..bc813519d4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-22.xml @@ -0,0 +1,25 @@ +<!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>:lang() pseudo-class</title> + <style type="text/css"><![CDATA[ul > li { background-color : red } +li:lang(en-GB) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li lang="en-GB">This list item should be green because its language is + British English</li> + <li lang="en-GB-wa">This list item should be green because its language + is British English (Wales)</li> +</ul> +<ol> + <li lang="en-US">This list item should NOT be green because its language + is US English</li> + <li lang="fr">This list item should NOT be green because its language is + French</li> +</ol> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-25.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-25.xml new file mode 100644 index 0000000000..450e4bd30b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-25.xml @@ -0,0 +1,16 @@ +<!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>:checked pseudo-class</title> + <style type="text/css"><![CDATA[input, span { background-color : red } +input:checked, input:checked + span { background-color : lime} +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p> +<input type="checkbox" checked="checked"></input> <span>Everything in this paragraph should have a green background</span></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27.xml new file mode 100644 index 0000000000..38813e16c7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27.xml @@ -0,0 +1,13 @@ +<!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>:root pseudo-class</title> + <style type="text/css"><![CDATA[html { background-color : red } +*:root { background-color: lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>The background of the document should be green</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27a.xml new file mode 100644 index 0000000000..ac5655bff4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27a.xml @@ -0,0 +1,27 @@ +<!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>Impossible rules (:root:first-child, etc)</title> + <style type="text/css"><![CDATA[ +:root:first-child { background-color: red; } +:root:last-child { background-color: red; } +:root:only-child { background-color: red; } +:root:nth-child(1) { background-color: red; } +:root:nth-child(n) { background-color: red; } +:root:nth-last-child(1) { background-color: red; } +:root:nth-last-child(n) { background-color: red; } +:root:first-of-type { background-color: red; } +:root:last-of-type { background-color: red; } +:root:only-of-type { background-color: red; } +:root:nth-of-type(1) { background-color: red; } +:root:nth-of-type(n) { background-color: red; } +:root:nth-last-of-type(1) { background-color: red; } +:root:nth-last-of-type(n) { background-color: red; } +p { color: green; }]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This line should be green (there should be no red on this page).</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27b.xml new file mode 100644 index 0000000000..1f40e3ccab --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-27b.xml @@ -0,0 +1,14 @@ +<!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>Impossible rules (* html, * :root)</title> + <style type="text/css"><![CDATA[* html { background-color: red; } +* :root { background-color: red; } +p { color: green; }]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This line should be green (there should be no red on this page).</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28.xml new file mode 100644 index 0000000000..c98caaa791 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28.xml @@ -0,0 +1,98 @@ +<!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>:nth-child() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +ul > li:nth-child(odd) { background-color : lime } +ol > li:nth-child(even) { background-color : lime } +table.t1 tr:nth-child(-n+4) { background-color : lime } +table.t2 td:nth-child(3n+1) { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li class="red">This first list item should have a green background</li> + <li>Second list item</li> + <li class="red">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="red">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ul> +<ol> + <li>First list item</li> + <li class="red">This second list item should have a green background</li> + <li>Third list item</li> + <li class="red">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="red">This sixth list item should have a green background</li> +</ol> +<div> +<table border="1" class="t1"> + <tr class="red"> +<td>Green row : 1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr class="red"> +<td>Green row : 2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr class="red"> +<td>Green row : 3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr class="red"> +<td>Green row : 4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr> +<td>5.1</td> +<td>5.2</td> +<td>5.3</td> +</tr> + <tr> +<td>6.1</td> +<td>6.2</td> +<td>6.3</td> +</tr> +</table> + +<table class="t2" border="1"> + <tr> +<td class="red">green cell</td> +<td>1.2</td> +<td>1.3</td> + <td class="red">green cell</td> +<td>1.5</td> +<td>1.6</td> + <td class="red">green cell</td> +<td>1.8</td> +</tr> + <tr> +<td class="red">green cell</td> +<td>2.2</td> +<td>2.3</td> + <td class="red">green cell</td> +<td>2.5</td> +<td>2.6</td> + <td class="red">green cell</td> +<td>2.8</td> +</tr> + <tr> +<td class="red">green cell</td> +<td>3.2</td> +<td>3.3</td> + <td class="red">green cell</td> +<td>3.5</td> +<td>3.6</td> + <td class="red">green cell</td> +<td>3.8</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28b.xml new file mode 100644 index 0000000000..f1af5fd150 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-28b.xml @@ -0,0 +1,99 @@ +<!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>:nth-child() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +ul > li:nth-child(odd) { background-color : red } +ol > li:nth-child(even) { background-color : red } +table.t1 tr:nth-child(-n+4) { background-color : red } +table.t2 td:nth-child(3n+1) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li class="green">This first list item should have a green background</li> + <li>Second list item</li> + <li class="green">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="green">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ul> +<ol> + <li>First list item</li> + <li class="green">This second list item should have a green background</li> + <li>Third list item</li> + <li class="green">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="green">This sixth list item should have a green background</li> +</ol> +<div> +<table border="1" class="t1"> + <tr class="green"> +<td>Green row : 1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr class="green"> +<td>Green row : 2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr class="green"> +<td>Green row : 3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr class="green"> +<td>Green row : 4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr> +<td>5.1</td> +<td>5.2</td> +<td>5.3</td> +</tr> + <tr> +<td>6.1</td> +<td>6.2</td> +<td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td class="green">green cell</td> +<td>1.2</td> +<td>1.3</td> + <td class="green">green cell</td> +<td>1.5</td> +<td>1.6</td> + <td class="green">green cell</td> +<td>1.8</td> +</tr> + <tr> +<td class="green">green cell</td> +<td>2.2</td> +<td>2.3</td> + <td class="green">green cell</td> +<td>2.5</td> +<td>2.6</td> + <td class="green">green cell</td> +<td>2.8</td> +</tr> + <tr> +<td class="green">green cell</td> +<td>3.2</td> +<td>3.3</td> + <td class="green">green cell</td> +<td>3.5</td> +<td>3.6</td> + <td class="green">green cell</td> +<td>3.8</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29.xml new file mode 100644 index 0000000000..372dbfa5db --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29.xml @@ -0,0 +1,99 @@ +<!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>:nth-last-child() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +ul > li:nth-last-child(odd) { background-color : green } +ol > li:nth-last-child(even) { background-color : green } +table.t1 tr:nth-last-child(-n+4) { background-color : green } +table.t2 td:nth-last-child(3n+1) { background-color : green }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li>First list item</li> + <li class="red">This second list item should have a green background</li> + <li>Third list item</li> + <li class="red">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="red">This sixth list item should have a green background</li> +</ul> +<ol> + <li class="red">This first list item should have a green background</li> + <li>Second list item</li> + <li class="red">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="red">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ol> +<div> +<table border="1" class="t1"> + <tr> +<td>1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr> +<td>2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr class="red"> +<td>Green row : 3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr class="red"> +<td>Green row : 4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr class="red"> +<td>Green row : 5.1</td> +<td>5.2</td> + <td>5.3</td> +</tr> + <tr class="red"> +<td>Green row : 6.1</td> +<td>6.2</td> + <td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td>1.1</td> +<td class="red">green cell</td> +<td>1.3</td> + <td>1.4</td> +<td class="red">green cell</td> +<td>1.6</td> + <td>1.7</td> +<td class="red">green cell</td> +</tr> + <tr> +<td>2.1</td> +<td class="red">green cell</td> +<td>2.3</td> + <td>2.4</td> +<td class="red">green cell</td> +<td>2.6</td> + <td>2.7</td> +<td class="red">green cell</td> +</tr> + <tr> +<td>3.1</td> +<td class="red">green cell</td> +<td>3.3</td> + <td>3.4</td> +<td class="red">green cell</td> +<td>3.6</td> + <td>3.7</td> +<td class="red">green cell</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29b.xml new file mode 100644 index 0000000000..0d88b4cc08 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-29b.xml @@ -0,0 +1,99 @@ +<!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>:nth-last-child() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +ul > li:nth-last-child(odd) { background-color : red } +ol > li:nth-last-child(even) { background-color : red } +table.t1 tr:nth-last-child(-n+4) { background-color : red } +table.t2 td:nth-last-child(3n+1) { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li>First list item</li> + <li class="green">This second list item should have a green background</li> + <li>Third list item</li> + <li class="green">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="green">This sixth list item should have a green background</li> +</ul> +<ol> + <li class="green">This first list item should have a green background</li> + <li>Second list item</li> + <li class="green">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="green">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ol> +<div> +<table border="1" class="t1"> + <tr> +<td>1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr> +<td>2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr class="green"> +<td>Green row : 3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr class="green"> +<td>Green row : 4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr class="green"> +<td>Green row : 5.1</td> +<td>5.2</td> + <td>5.3</td> +</tr> + <tr class="green"> +<td>Green row : 6.1</td> +<td>6.2</td> + <td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td>1.1</td> +<td class="green">green cell</td> +<td>1.3</td> + <td>1.4</td> +<td class="green">green cell</td> +<td>1.6</td> + <td>1.7</td> +<td class="green">green cell</td> +</tr> + <tr> +<td>2.1</td> +<td class="green">green cell</td> +<td>2.3</td> + <td>2.4</td> +<td class="green">green cell</td> +<td>2.6</td> + <td>2.7</td> +<td class="green">green cell</td> +</tr> + <tr> +<td>3.1</td> +<td class="green">green cell</td> +<td>3.3</td> + <td>3.4</td> +<td class="green">green cell</td> +<td>3.6</td> + <td>3.7</td> +<td class="green">green cell</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3.xml new file mode 100644 index 0000000000..7bcc09b947 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector</title> + <style type="text/css"><![CDATA[* { color : lime } +ul, p { color : red } +*.t1 { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p> +<span class="t1">This paragraph, and all textual contents in the document, + should be green.</span> +</p> +<ul> + <li class="t1">This item should be green.</li> +</ul> +<foo xmlns="http://www.example.org/a">And this element, part of a non-HTML namespace, + should be green too</foo> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-30.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-30.xml new file mode 100644 index 0000000000..61194a07df --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-30.xml @@ -0,0 +1,32 @@ +<!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>:nth-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:nth-of-type(3) { background-color : lime } +dl > :nth-of-type(3n+1) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This paragraph is here only to fill space in the DOM</p> +<address>And this address too..</address> +<p>So does this paragraph !</p> +<p class="red">But this one should have green background</p> +<dl> + <dt class="red">First definition term that should have green background</dt> + <dd class="red">First definition that should have green background</dd> + <dt>Second definition term</dt> + <dd>Second definition</dd> + <dt>Third definition term</dt> + <dd>Third definition</dd> + <dt class="red">Fourth definition term that should have green background</dt> + <dd class="red">Fourth definition that should have green background</dd> + <dt>Fifth definition term</dt> + <dd>Fifth definition</dd> + <dt>Sixth definition term</dt> + <dd>Sixth definition</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-31.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-31.xml new file mode 100644 index 0000000000..da51455b1f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-31.xml @@ -0,0 +1,32 @@ +<!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>:nth-last-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:nth-last-of-type(3) { background-color : lime } +dl > :nth-last-of-type(3n+1) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p class="red">This paragraph should have green background</p> +<address>But this address is here only to fill space in the dom..</address> +<p>So does this paragraph !</p> +<p>And so does this one too.</p> +<dl> + <dt>First definition term</dt> + <dd>First definition</dd> + <dt>Second definition term</dt> + <dd>Second definition</dd> + <dt class="red">Third definition term that should have green background</dt> + <dd class="red">Third definition that should have green background</dd> + <dt>Fourth definition term</dt> + <dd>Fourth definition</dd> + <dt>Fifth definition term</dt> + <dd>Fifth definition</dd> + <dt class="red">Sixth definition term that should have green background</dt> + <dd class="red">Sixth definition that should have green background</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-32.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-32.xml new file mode 100644 index 0000000000..3ccffc6747 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-32.xml @@ -0,0 +1,36 @@ +<!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>:first-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 td:first-child { background-color : lime } +p > *:first-child { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div> +<table class="t1" border="1"> + <tr> + <td class="red">green cell</td> + <td>1.2</td> + <td>1.3</td> + </tr> + <tr> + <td class="red">green cell</td> + <td>2.2</td> + <td>2.3</td> + </tr> + <tr> + <td class="red">green cell</td> + <td>3.2</td> + <td>3.3</td> + </tr> +</table> +</div> +<p>This paragraph contains some text + <span>and a span that should have a green background</span> +</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-33.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-33.xml new file mode 100644 index 0000000000..f93992be2e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-33.xml @@ -0,0 +1,36 @@ +<!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>:last-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 td:last-child { background-color : lime } +p > *:last-child { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div> +<table class="t1" border="1"> + <tr> + <td>1.1</td> + <td>1.2</td> + <td class="red">green cell</td> + </tr> + <tr> + <td>2.1</td> + <td>2.2</td> + <td class="red">green cell</td> + </tr> + <tr> + <td>3.1</td> + <td>3.2</td> + <td class="red">green cell</td> + </tr> +</table> +</div> +<p> +<span>This paragraph contains a span that should + have a green background</span> and some text after it.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-34.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-34.xml new file mode 100644 index 0000000000..1323ec7b48 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-34.xml @@ -0,0 +1,19 @@ +<!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>:first-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +address { margin-bottom : 1em ; margin-left : 1em } +address:first-of-type { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div>This div contains 3 addresses: +<address class="red">A first address that should have a green background</address> +<address>A second address with normal background</address> +<address>A third address with normal background</address> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-35.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-35.xml new file mode 100644 index 0000000000..7d0437d8ef --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-35.xml @@ -0,0 +1,20 @@ +<!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>:last-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +address { margin-bottom : 1em ; margin-left : 1em } +address:last-of-type { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div> +<address>A first address with normal background</address> +<address>A second address with normal background</address> +<address class="red">A third address that should have a green background</address> +This div contains 3 addresses above this sentence.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-36.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-36.xml new file mode 100644 index 0000000000..7790d0a5a7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-36.xml @@ -0,0 +1,18 @@ +<!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>:only-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:only-child { background-color : lime } +div.testText > div > p { margin-left : 1em } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This paragraph should have normal background</p> +<div>This div contains only one paragraph + <p class="red">This paragraph should have green background</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-37.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-37.xml new file mode 100644 index 0000000000..5684926083 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-37.xml @@ -0,0 +1,18 @@ +<!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>:only-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 :only-of-type { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div class="t1"> +<p>This paragraph should have normal background</p> +<address class="red">But this address should have green background</address> +<p>This paragraph should have normal background</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-38.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-38.xml new file mode 100644 index 0000000000..f44abe1584 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-38.xml @@ -0,0 +1,19 @@ +<!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>::first-line pseudo-element</title> + <style type="text/css"><![CDATA[p:first-line { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This very long paragraph should have a + first line with green background. This very long paragraph should have a first + line with green background. This very long paragraph should have a first line + with green background. This very long paragraph should have a first line with + green background. This very long paragraph should have a first line with green + background. This very long paragraph should have a first line with green background. + This very long paragraph should have a first line with green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39.xml new file mode 100644 index 0000000000..20cbcfd361 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39.xml @@ -0,0 +1,35 @@ +<!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>::first-letter pseudo-element</title> + <style type="text/css"><![CDATA[p:first-letter { font-size : xx-large ; background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + +<p>This very long paragraph +should have a big first letter T with a green background. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text.</p> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39a.xml new file mode 100644 index 0000000000..13a7386313 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39a.xml @@ -0,0 +1,36 @@ +<!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>::first-letter pseudo-element with ::before pseudo-element</title> + <style type="text/css"><![CDATA[p:first-letter { color: lime; font-size: xx-large; } +p:before { color: red; content: 'T'; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + +<p>his very long paragraph should +have a big green first letter T. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text.</p> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39b.xml new file mode 100644 index 0000000000..30fce57ea5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39b.xml @@ -0,0 +1,35 @@ +<!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>::first-letter pseudo-element</title> + <style type="text/css"><![CDATA[p::first-letter { font-size : xx-large ; background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + +<p>This very long paragraph +should have a big first letter T with a green background. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text.</p> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39c.xml new file mode 100644 index 0000000000..8f61f5cb8b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-39c.xml @@ -0,0 +1,36 @@ +<!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>::first-letter pseudo-element with ::before pseudo-element</title> + <style type="text/css"><![CDATA[p::first-letter { color: lime; font-size: xx-large; } + p::before { color: red; content: 'T'; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + +<p>his very long paragraph should +have a big green first letter T. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text. Dummy text. Dummy +text. Dummy text. Dummy text. Dummy text.</p> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3a.xml new file mode 100644 index 0000000000..7c2acd2f9f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-3a.xml @@ -0,0 +1,22 @@ +<!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>Universal selector (no namespaces)</title> + <style type="text/css"><![CDATA[* { color : lime } +ul, p { color : red } +*.t1 { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p> +<span class="t1">This paragraph, and all textual contents in the document, + should be green.</span> +</p> +<ul> + <li class="t1">This item should be green.</li> +</ul> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-4.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-4.xml new file mode 100644 index 0000000000..1e096db55a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-4.xml @@ -0,0 +1,13 @@ +<!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>Omitted universal selector</title> + <style type="text/css"><![CDATA[#foo { background-color : lime } +p { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p id="foo">This paragraph should have a green background</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41.xml new file mode 100644 index 0000000000..b8e031f902 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41.xml @@ -0,0 +1,13 @@ +<!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>::before pseudo-element</title> + <style type="text/css"><![CDATA[p::before { background-color : lime ; content : "GENERATED CONTENT "} +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>You should see before this paragraph the words GENERATED CONTENT over green background</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41a.xml new file mode 100644 index 0000000000..653cfc82ba --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-41a.xml @@ -0,0 +1,13 @@ +<!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>:before pseudo-element</title> + <style type="text/css"><![CDATA[p:before { background-color : lime ; content : "GENERATED CONTENT "} +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>You should see before this paragraph the words GENERATED CONTENT over green background</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42.xml new file mode 100644 index 0000000000..4221b1a04a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42.xml @@ -0,0 +1,13 @@ +<!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>::after pseudo-element</title> + <style type="text/css"><![CDATA[p::after { background-color : lime ; content : "GENERATED CONTENT "} +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>You should see after this paragraph the words GENERATED CONTENT over green background</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42a.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42a.xml new file mode 100644 index 0000000000..5499b3f2ea --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-42a.xml @@ -0,0 +1,13 @@ +<!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>:after pseudo-element</title> + <style type="text/css"><![CDATA[p:after { background-color : lime ; content : "GENERATED CONTENT "} +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>You should see after this paragraph the words GENERATED CONTENT over green background</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43.xml new file mode 100644 index 0000000000..62075b35d7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43.xml @@ -0,0 +1,35 @@ +<!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>Descendant combinator</title> + <style type="text/css"><![CDATA[.white { background-color: transparent ! important; } +.red { background-color: red; } +div.t1 p { background-color: lime; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="t1"> + <p class="red">This paragraph should have a green background</p> + <table> + <tbody> + <tr> + <td> + <p class="red">This paragraph should have a green background</p> + </td> + </tr> + </tbody> + </table> + </div> + <table> + <tbody> + <tr> + <td> + <p class="white">This paragraph should be unstyled.</p> + </td> + </tr> + </tbody> + </table> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43b.xml new file mode 100644 index 0000000000..e47f816397 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-43b.xml @@ -0,0 +1,35 @@ +<!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>Descendant combinator</title> + <style type="text/css"><![CDATA[.white { background-color: transparent ! important; } +.green { background-color: lime; } +div.t1 p { background-color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="t1"> + <p class="white">This paragraph should be unstyled</p> + <table> + <tbody> + <tr> + <td> + <p class="white">This paragraph should be unstyled</p> + </td> + </tr> + </tbody> + </table> + </div> + <table> + <tbody> + <tr> + <td> + <p class="green">This paragraph should have a green background</p> + </td> + </tr> + </tbody> + </table> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44.xml new file mode 100644 index 0000000000..2706b95604 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44.xml @@ -0,0 +1,29 @@ +<!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>Child combinator</title> + <style type="text/css"><![CDATA[.white { background-color: transparent ! important; } +.red { background-color: red; } +div > p.test { background-color: lime; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <p class="red test">This paragraph should have a green background</p> + <div> + <p class="red test">This paragraph should have a green background</p> + </div> + </div> + <table> + <tbody> + <tr> + <td> + <p class="white test">This paragraph should be unstyled.</p> + </td> + </tr> + </tbody> + </table> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44b.xml new file mode 100644 index 0000000000..fa4549b9b4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44b.xml @@ -0,0 +1,29 @@ +<!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>Child combinator</title> + <style type="text/css"><![CDATA[.white { background-color: transparent ! important; } +.green { background-color: lime; } +div > p.test { background-color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <p class="white test">This paragraph should be unstyled.</p> + <div> + <p class="white test">This paragraph should be unstyled.</p> + </div> + </div> + <table> + <tbody> + <tr> + <td> + <p class="green test">This paragraph should have a green background.</p> + </td> + </tr> + </tbody> + </table> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44c.xml new file mode 100644 index 0000000000..b147a74e35 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44c.xml @@ -0,0 +1,16 @@ +<!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>Child combinator and classes</title> + <style type="text/css"><![CDATA[ + .fail > div { background: red; color: yellow; } + .control { background: green; color: white; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> This should be unstyled. </div> + <div class="control"> This should have a green background. </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44d.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44d.xml new file mode 100644 index 0000000000..9f0fa3ab0f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-44d.xml @@ -0,0 +1,16 @@ +<!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>Child combinatior and IDs</title> + <style type="text/css"><![CDATA[ + #fail > div { background: red; } + p { background: green; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> This should be unstyled. </div> + <p> This should have a green background. </p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45.xml new file mode 100644 index 0000000000..e5f97e6582 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45.xml @@ -0,0 +1,20 @@ +<!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>Direct adjacent combinator</title> + <style type="text/css"><![CDATA[.red { background-color : red } +div.stub > p + p { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="stub"> + <p>This paragraph should be unstyled.</p> + <p class="red">But this one should have a green background.</p> + <p class="red">And this one should also have a green background.</p> + <address>This address is only here to fill some space between two paragraphs.</address> + <p>This paragraph should be unstyled.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45b.xml new file mode 100644 index 0000000000..ac7f81d08e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45b.xml @@ -0,0 +1,21 @@ +<!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>Direct adjacent combinator</title> + <style type="text/css"><![CDATA[.green { background-color: lime; } +.white { background-color: transparent ! important; } +div.stub > p + p { background-color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="stub"> + <p class="green">This paragraph should have a green background.</p> + <p class="white">But this one should be unstyled.</p> + <p class="white">And this one should also be unstyled.</p> + <address class="green">This address is only here to fill some space between two paragraphs and should have a green background.</address> + <p class="green">This paragraph should have a green background too.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45c.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45c.xml new file mode 100644 index 0000000000..cd1aa714b0 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-45c.xml @@ -0,0 +1,16 @@ +<!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>Direct adjacent combinator and classes</title> + <style type="text/css"><![CDATA[ + .fail + div { background: red; } + .control { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> This should be unstyled. </div> + <div class="control"> This should have a green background. </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46.xml new file mode 100644 index 0000000000..08919fdc67 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46.xml @@ -0,0 +1,20 @@ +<!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>Indirect adjacent combinator</title> + <style type="text/css"><![CDATA[.red { background-color : red } +div.stub > p ~ p { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="stub"> + <p>This paragraph should be unstyled.</p> + <p class="red">But this one should have a green background</p> + <p class="red">And this one should also have a green background</p> + <address>This address is only here to fill some space between two paragraphs</address> + <p class="red">This paragraph should have a green background</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46b.xml new file mode 100644 index 0000000000..c22a74e704 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-46b.xml @@ -0,0 +1,20 @@ +<!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>Indirect adjacent combinator</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +div.stub > p ~ p { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div class="stub"> + <p>This paragraph should be unstyled.</p> + <p class="green">But this one should have a green background</p> + <p class="green">And this one should also have a green background</p> + <address>This address is only here to fill some space between two paragraphs</address> + <p class="green">This paragraph should have a green background</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-47.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-47.xml new file mode 100644 index 0000000000..320490f211 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-47.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED type element selector</title> + <style type="text/css"><![CDATA[div.stub span, div.stub address, div.stub *|q, div.stub *|r { background-color: red; } +address, *|q, *|r { display: block; margin: 1em; } +div.stub *:not(p) { background-color: lime; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <div class="stub"> + <p> + <span>The text in this paragraph should have a green background</span> + </p> + <address>This address should have a green background</address> + <q xmlns="http://www.example.org/a">This element in another namespace should have a green background.</q> + <r xmlns="">This element without a namespace should have a green background.</r> + <p>This paragraph should be unstyled.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-48.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-48.xml new file mode 100644 index 0000000000..51484c8eac --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-48.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED universal selector</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { background-color : lime ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not(*) { background-color : red } +/* yes, the rule just above selects nothing... That's the point */ +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-address-p-p-p-lime-background.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<address>This address should have a green background</address> +<s xmlns="http://www.example.org/b">This paragraph should have a green background</s> +<t xmlns="">This paragraph should have a green background</t> +<u xmlns="http://www.example.org/a">This paragraph should have a green background</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-49.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-49.xml new file mode 100644 index 0000000000..40aa8315ce --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-49.xml @@ -0,0 +1,25 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED omitted universal selector is forbidden</title> + <style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml); +@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub > *|* { background-color : lime ; display : block ; + margin-bottom : 1em } +div.stub > *|*:not() { background-color : red } +/* yes, the rule just above selects nothing... That's the point */ +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-address-p-p-p-lime-background.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<address>This address should have a green background</address> +<s xmlns="http://www.example.org/b">This paragraph should have a green background</s> +<t xmlns="">This paragraph should have a green background</t> +<u xmlns="http://www.example.org/a">This paragraph should have a green background</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-5.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-5.xml new file mode 100644 index 0000000000..5ef9f9980e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-5.xml @@ -0,0 +1,14 @@ +<!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>Attribute existence selector</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[title] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p title="title">This paragraph should have a green background because its TITLE + attribute is set.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-50.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-50.xml new file mode 100644 index 0000000000..7b81eaec82 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-50.xml @@ -0,0 +1,19 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED attribute existence selector</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +a|* { color : red ; display : block ; margin-bottom : 1em } +div.stub *|*:not([test]) { color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<q xmlns="http://www.example.org/a" test="1"> + <r>This text should be in green characters</r> +</q> +<s xmlns="http://www.example.org/a">This text should be in green characters</s> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-51.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-51.xml new file mode 100644 index 0000000000..327bdca14d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-51.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED attribute value selector</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +div.stub > p {color : red } +div.stub > a|* { color : red ; display : block ; margin-bottom : 1em } +div.stub *|*:not([test="1"]) { color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<q xmlns="http://www.example.org/a" test="1"> + <r test="11">This text should be</r> + <r>in green characters</r> +</q> +<s xmlns="http://www.example.org/a">This text should be in green characters</s> +<p>This text should be in green characters</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-52.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-52.xml new file mode 100644 index 0000000000..3320e3d2c0 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-52.xml @@ -0,0 +1,28 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED attribute space-separated value selector</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub p { color : red } +div.stub > a|*, div.stub > b|* { color : red ; display : block ; margin-bottom : 1em } +div.stub *|*:not([test~="foo"]) { color : lime } +div.stub *|p:not([class~="foo"]) { color : lime } +div.stub b|*[test~="foo2"] { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<q xmlns="http://www.example.org/a" test="bar foo tut"> + <r test="tut foofoo bar">This text should be</r> + <r>in green characters</r> +</q> +<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s> +<t xmlns="http://www.example.org/a">This text should be in green characters</t> +<p class="tit foo1 tut">This text should be in green characters</p> +<u xmlns="http://www.example.org/b" test="tit foo2 tut">This text should be in green characters</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-53.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-53.xml new file mode 100644 index 0000000000..bb9118688b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-53.xml @@ -0,0 +1,28 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED attribute dash-separated value selector</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.stub p { color : red } +div.stub > a|*, div.stub > b|* { color : red ; display : block ; margin-bottom : 1em } +div.stub *|*:not([test|="foo-bar"]) { color : lime } +div.stub *|p:not([lang|="en-us"]) { color : lime } +div.stub b|*[test|="foo2-bar"] { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="stub"> +<q xmlns="http://www.example.org/a" test="foo-bar"> + <r test="foo-bartut">This text should be</r> + <r>in green characters</r> +</q> +<s xmlns="http://www.example.org/a" test="bar tut">This text should be in green characters</s> +<t xmlns="http://www.example.org/a">This text should be in green characters</t> +<p class="en-uk">This text should be in green characters</p> +<u xmlns="http://www.example.org/b" test="foo2-bar-lol">This text should be in green characters</u> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-54.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-54.xml new file mode 100644 index 0000000000..5ab7c84179 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-54.xml @@ -0,0 +1,21 @@ +<!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>NEGATED substring matching attribute selector on beginning</title> + <style type="text/css"><![CDATA[div.stub > * { color : red } +div.stub *:not([title^="si on"]) { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-paragraph-lime-characters.xht"/> + </head> + <body> +<div class="stub"> +<p>This paragraph should be in green characters.</p> +<p title="on chante?">This paragraph should be in green characters.</p> +<p title="si on chantait"> + <span title="si il chantait">This paragraph should be in green characters.</span> +</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-55.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-55.xml new file mode 100644 index 0000000000..c4d5a130fb --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-55.xml @@ -0,0 +1,21 @@ +<!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>NEGATED substring matching attribute selector on end</title> + <style type="text/css"><![CDATA[div.stub > * { color : red } +div.stub *:not([title$="tait"]) { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-paragraph-lime-characters.xht"/> + </head> + <body> +<div class="stub"> +<p>This paragraph should be in green characters.</p> +<p title="on chante?">This paragraph should be in green characters.</p> +<p title="si on chantait"> + <span title="si il chante">This paragraph should be in green characters.</span> +</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-56.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-56.xml new file mode 100644 index 0000000000..cdcc923397 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-56.xml @@ -0,0 +1,21 @@ +<!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>NEGATED substring matching attribute selector on middle</title> + <style type="text/css"><![CDATA[div.stub > * { color : red } +div.stub *:not([title*=" on"]) { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-paragraph-lime-characters.xht"/> + </head> + <body> +<div class="stub"> +<p>This paragraph should be in green characters.</p> +<p title="on chante?">This paragraph should be in green characters.</p> +<p title="si on chantait"> + <span title="si il chante">This paragraph should be in green characters.</span> +</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57.xml new file mode 100644 index 0000000000..4539b0a9ec --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +div.stub *:not([a|title]) {background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <div class="stub"> + <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q> + <p title="a paragraph">This paragraph should have a green background.</p> + <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57b.xml new file mode 100644 index 0000000000..baf4a38b2e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-57b.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>NEGATED Attribute existence selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +div.stub *:not([a|title]) {background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <div class="stub"> + <q xmlns="http://www.example.org/a" a:title="a paragraph">This a:q element should be unstyled.</q> + <p title="a paragraph">This paragraph should have a green background.</p> + <r xmlns="http://www.example.org/b" b:title="a paragraph">This b:r element should have a green background.</r> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-59.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-59.xml new file mode 100644 index 0000000000..e394adbc79 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-59.xml @@ -0,0 +1,21 @@ +<!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>NEGATED class selector</title> + <style type="text/css"><![CDATA[div.stub > * { color : red } +div.stub *:not(.foo) { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-paragraph-lime-characters.xht"/> + </head> + <body> +<div class="stub"> +<p>This paragraph should be in green characters.</p> +<p class="bar foofoo tut">This paragraph should be in green characters.</p> +<p class="bar foo tut"> + <span class="tut foo2">This paragraph should be in green characters.</span> +</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-6.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-6.xml new file mode 100644 index 0000000000..7533d3f023 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-6.xml @@ -0,0 +1,19 @@ +<!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>Attribute value selector</title> + <style type="text/css"><![CDATA[address { background-color : red } +address[title="foo"] { background-color : lime } +span[title="a"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<address title="foo"> +<span title="b">This line should </span> + <span title="aa">have a green background. +</span> +</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-60.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-60.xml new file mode 100644 index 0000000000..de4a23d35b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-60.xml @@ -0,0 +1,21 @@ +<!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>NEGATED ID selector</title> + <style type="text/css"><![CDATA[div.stub > * { color : red } +div.stub *:not(#foo) { color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/three-paragraph-lime-characters.xht"/> + </head> + <body> +<div class="stub"> +<p>This paragraph should be in green characters.</p> +<p id="foo2">This paragraph should be in green characters.</p> +<p id="foo"> + <span>This paragraph should be in green characters.</span> +</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-61.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-61.xml new file mode 100644 index 0000000000..cb3c2df6fc --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-61.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :link pseudo-class</title> + <style type="text/css"><![CDATA[div.stub > * { background-color : red } +div.stub *:not(:link) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" history" /> + </head> + <body> +<div class="stub"> +<a href="http://www.w3.org/">This anchor should have a green background</a> +(Note: You must have visited http://www.w3.org/ for this test to be valid.) +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-62.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-62.xml new file mode 100644 index 0000000000..ffaea5d44a --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-62.xml @@ -0,0 +1,18 @@ +<!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>NEGATED :visited pseudo-class</title> + <style type="text/css"><![CDATA[div.stub > * { background-color : red } +div.stub *:not(:visited) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" history" /> + </head> + <body> +<div class="stub"> +<a href="http://unvisited.example.org/css3-modsel-62/">This anchor should have a green background</a> +(Don't follow this link.) +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-63.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-63.xml new file mode 100644 index 0000000000..7c4a34a9b2 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-63.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :hover pseudo-class</title> + <style type="text/css"><![CDATA[div.stub * { color: lime; text-decoration: none; } +div.stub > * > *:not(:hover) { color: black } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <div class="stub"> + <p> <span>The color of this text should be green when the pointing device hovers over it.</span> </p> + <p> <a href="http://dummy.example.org/dummy">The color of this text should be green when the pointing device hovers over it.</a> </p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-64.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-64.xml new file mode 100644 index 0000000000..b1f00e4909 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-64.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :active pseudo-class</title> + <style type="text/css"><![CDATA[div.stub * { color : lime } +div.stub > * > *:not(:active) { color : black } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> + <div class="stub"> + <p> <a href="http://dummy.example.org/dummy">This text should turn green while it is active.</a> </p> + <p> <button>This text should turn green while it is active.</button> </p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-65.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-65.xml new file mode 100644 index 0000000000..384c6bcd18 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-65.xml @@ -0,0 +1,17 @@ +<!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>NEGATED :focus pseudo-class</title> + <style type="text/css"><![CDATA[a:not(:focus) { background-color: transparent; } +a { background-color: lime; } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p>The background color of all <a href="#foo">anchors</a> + should become <a href="#foo"> green</a> when they have the + <a href="#foo">focus</a>.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66.xml new file mode 100644 index 0000000000..e7b9562ea3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66.xml @@ -0,0 +1,25 @@ +<!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>NEGATED :target pseudo-class</title> + <style type="text/css"><![CDATA[p { background-color: navy; color: white; } +p:not(:target) { background-color: white; color: black; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" interact" /> + </head> + <body> +<p id="first">This paragraph should be unstyled. + The background of the following paragraph should become blue when + you follow <a href="#second">this link</a>.</p> +<p id="second">This paragraph should initially be unstyled. + It should become blue when you select the link above. When you select + <a href="#third">this link</a>, it should return to being unstyled and the + background of the paragraph below should become blue.</p> +<p id="third">This paragraph should initially be unstyled. + It should become blue when you select the link above. When you follow + <a href="#missing">this link</a>, the three paragraphs + should all return to being unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66b.xml new file mode 100644 index 0000000000..d23c74c412 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-66b.xml @@ -0,0 +1,14 @@ +<!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>NEGATED :target pseudo-class</title> + <style type="text/css"><![CDATA[p { background-color: red; } +p:not(:target) { background-color: lime; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This paragraph should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-67.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-67.xml new file mode 100644 index 0000000000..b341517fec --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-67.xml @@ -0,0 +1,22 @@ +<!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>NEGATED :lang() pseudo-class</title> + <style type="text/css"><![CDATA[div.stub * { background-color : red } +div.stub *:not(:lang(fr)) { background-color : green }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div lang="en" class="stub"> +<p>This paragraph should have a green background because the + enclosing div is in english.</p> +<p lang="en">This paragraph should have a green background because + it is in english.</p> +<div lang="fr"> + <p lang="en">This paragraph should have a green background + because it is in english.</p> +</div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7.xml new file mode 100644 index 0000000000..c6ac94f986 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7.xml @@ -0,0 +1,22 @@ +<!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>Attribute multivalue selector</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[class~="b"] { background-color : lime } +address { background-color : red } +address[title~="foo"] { background-color : lime } +span[class~="b"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p class="a b c">This paragraph should have green background because CLASS + contains "b"</p> +<address title="tot foo bar"> +<span class="a c">This address should also</span> + <span class="a bb c">have green background because the selector in the last + rule does not apply to the inner SPANs.</span> +</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-70.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-70.xml new file mode 100644 index 0000000000..acfe6662a1 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-70.xml @@ -0,0 +1,15 @@ +<!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>NEGATED :checked pseudo-class</title> + <style type="text/css"><![CDATA[input, span { background-color : red } +input:not(:checked), input:not(:checked) + span { background-color : lime}]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p> +<input type="checkbox"></input> <span>Everything in this paragraph should have a green background</span></p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72.xml new file mode 100644 index 0000000000..d62a2aac01 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72.xml @@ -0,0 +1,17 @@ +<!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>NEGATED :root pseudo-class</title> + <style type="text/css"><![CDATA[p:not(:root) { background-color: lime; } +div * { background-color: red; } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <p>This paragraph should have a green background and there should be no red anywhere.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72b.xml new file mode 100644 index 0000000000..7e25a21ec3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-72b.xml @@ -0,0 +1,17 @@ +<!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>NEGATED :root pseudo-class</title> + <style type="text/css"><![CDATA[html:not(:root), test:not(:root) { background-color: red; } +p { background-color: lime; } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <p>This paragraph should have a green background and there should be no red anywhere.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73.xml new file mode 100644 index 0000000000..659b2d69f6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73.xml @@ -0,0 +1,99 @@ +<!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>NEGATED :nth-child() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +ul > li:not(:nth-child(odd)) { background-color : lime } +ol > li:not(:nth-child(even)) { background-color : lime } +table.t1 tr:not(:nth-child(-n+4)) { background-color : lime } +table.t2 td:not(:nth-child(3n+1)) { background-color : lime } +table.t1 td, table.t2 td { border : thin black solid }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li>First list item</li> + <li class="red">This second list item should have a green background</li> + <li>Third list</li> + <li class="red">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="red">This sixth list item should have a green background</li> +</ul> +<ol> + <li class="red">This first list item should have a green background</li> + <li>Second list item</li> + <li class="red">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="red">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ol> +<div> +<table border="1" class="t1"> + <tr> +<td>1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr> +<td>2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr> +<td>3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr> +<td>4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr class="red"> +<td>Green row : 5.1</td> +<td>5.2</td> +<td>5.3</td> +</tr> + <tr class="red"> +<td>Green row : 6.1</td> +<td>6.2</td> +<td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td>1.1</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>1.4</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>1.7</td> +<td class="red">green cell</td> +</tr> + <tr> +<td>2.1</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>2.4</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>2.7</td> +<td class="red">green cell</td> +</tr> + <tr> +<td>3.1</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>3.4</td> +<td class="red">green cell</td> +<td class="red">green cell</td> + <td>3.7</td> +<td class="red">green cell</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73b.xml new file mode 100644 index 0000000000..38f69ee587 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-73b.xml @@ -0,0 +1,100 @@ +<!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>NEGATED :nth-child() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important; } +ul > li:not(:nth-child(odd)) { background-color : red } +ol > li:not(:nth-child(even)) { background-color : red } +table.t1 tr:not(:nth-child(-n+4)) { background-color : red } +table.t2 td:not(:nth-child(3n+1)) { background-color : red } +table.t1 td, table.t2 td { border : thin black solid }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li>First list item</li> + <li class="green">This second list item should have a green background</li> + <li>Third list</li> + <li class="green">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="green">This sixth list item should have a green background</li> +</ul> +<ol> + <li class="green">This first list item should have a green background</li> + <li>Second list item</li> + <li class="green">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="green">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ol> +<div> +<table border="1" class="t1"> + <tr> +<td>1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr> +<td>2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr> +<td>3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr> +<td>4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr class="green"> +<td>Green row : 5.1</td> +<td>5.2</td> +<td>5.3</td> +</tr> + <tr class="green"> +<td>Green row : 6.1</td> +<td>6.2</td> +<td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td>1.1</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>1.4</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>1.7</td> +<td class="green">green cell</td> +</tr> + <tr> +<td>2.1</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>2.4</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>2.7</td> +<td class="green">green cell</td> +</tr> + <tr> +<td>3.1</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>3.4</td> +<td class="green">green cell</td> +<td class="green">green cell</td> + <td>3.7</td> +<td class="green">green cell</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74.xml new file mode 100644 index 0000000000..94f61de1c4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74.xml @@ -0,0 +1,100 @@ +<!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>NEGATED :nth-last-child() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +ul > li:not(:nth-last-child(odd)) { background-color : lime } +ol > li:not(:nth-last-child(even)) { background-color : lime } +table.t1 tr:not(:nth-last-child(-n+4)) { background-color : lime } +table.t2 td:not(:nth-last-child(3n+1)) { background-color : lime } +table.t1 td, table.t2 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li class="red">This first list item should have a green background</li> + <li>Second list item</li> + <li class="red">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="red">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ul> +<ol> + <li>First list item</li> + <li class="red">This second list item should have a green background</li> + <li>Third list item</li> + <li class="red">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="red">This sixth list item should have a green background</li> +</ol> +<div> +<table border="1" class="t1"> + <tr class="red"> +<td>Green row : 1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr class="red"> +<td>Green row : 2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr> +<td>3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr> +<td>4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr> +<td>5.1</td> +<td>5.2</td> + <td>5.3</td> +</tr> + <tr> +<td>6.1</td> +<td>6.2</td> + <td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td class="red">green cell</td> +<td>1.2</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>1.5</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>1.8</td> +</tr> + <tr> +<td class="red">green cell</td> +<td>2.2</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>2.5</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>2.8</td> +</tr> + <tr> +<td class="red">green cell</td> +<td>3.2</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>3.5</td> +<td class="red">green cell</td> + <td class="red">green cell</td> +<td>3.8</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74b.xml new file mode 100644 index 0000000000..ddc7c9bf60 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-74b.xml @@ -0,0 +1,101 @@ +<!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>NEGATED :nth-last-child() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important; } +ul > li:not(:nth-last-child(odd)) { background-color : red } +ol > li:not(:nth-last-child(even)) { background-color : red } +table.t1 tr:not(:nth-last-child(-n+4)) { background-color : red } +table.t2 td:not(:nth-last-child(3n+1)) { background-color : red } +table.t1 td, table.t2 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<ul> + <li class="green">This first list item should have a green background</li> + <li>Second list item</li> + <li class="green">This third list item should have a green background</li> + <li>Fourth list item</li> + <li class="green">This fifth list item should have a green background</li> + <li>Sixth list item</li> +</ul> +<ol> + <li>First list item</li> + <li class="green">This second list item should have a green background</li> + <li>Third list item</li> + <li class="green">This fourth list item should have a green background</li> + <li>Fifth list item</li> + <li class="green">This sixth list item should have a green background</li> +</ol> +<div> +<table border="1" class="t1"> + <tr class="green"> +<td>Green row : 1.1</td> +<td>1.2</td> + <td>1.3</td> +</tr> + <tr class="green"> +<td>Green row : 2.1</td> +<td>2.2</td> + <td>2.3</td> +</tr> + <tr> +<td>3.1</td> +<td>3.2</td> + <td>3.3</td> +</tr> + <tr> +<td>4.1</td> +<td>4.2</td> + <td>4.3</td> +</tr> + <tr> +<td>5.1</td> +<td>5.2</td> + <td>5.3</td> +</tr> + <tr> +<td>6.1</td> +<td>6.2</td> + <td>6.3</td> +</tr> +</table> +<p></p> +<table class="t2" border="1"> + <tr> +<td class="green">green cell</td> +<td>1.2</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>1.5</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>1.8</td> +</tr> + <tr> +<td class="green">green cell</td> +<td>2.2</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>2.5</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>2.8</td> +</tr> + <tr> +<td class="green">green cell</td> +<td>3.2</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>3.5</td> +<td class="green">green cell</td> + <td class="green">green cell</td> +<td>3.8</td> +</tr> +</table> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75.xml new file mode 100644 index 0000000000..de6c1c9868 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75.xml @@ -0,0 +1,33 @@ +<!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>NEGATED :nth-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:not(:nth-of-type(3)) { background-color : lime } +dl > *:not(:nth-of-type(3n+1)) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p class="red">This paragraph should have green background</p> +<address>And this address should be unstyled.</address> +<p class="red">This paragraph should also have green background!</p> +<p>But this one should be unstyled again.</p> +<dl> + <dt>First definition term</dt> + <dd>First definition</dd> + <dt class="red">Second definition term that should have green background</dt> + <dd class="red">Second definition that should have green background</dd> + <dt class="red">Third definition term that should have green background</dt> + <dd class="red">Third definition that should have green background</dd> + <dt>Fourth definition term</dt> + <dd>Fourth definition</dd> + <dt class="red">Fifth definition term that should have green background</dt> + <dd class="red">Fifth definition that should have green background</dd> + <dt class="red">Sixth definition term that should have green background</dt> + <dd class="red">Sixth definition that should have green background</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75b.xml new file mode 100644 index 0000000000..35bc2a70fd --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-75b.xml @@ -0,0 +1,33 @@ +<!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>NEGATED :nth-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +p:not(:nth-of-type(3)) { background-color : red } +dl > *:not(:nth-of-type(3n+1)) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p class="green">This paragraph should have green background</p> +<address>And this address should be unstyled.</address> +<p class="green">This paragraph should also have green background!</p> +<p>But this one should be unstyled again.</p> +<dl> + <dt>First definition term</dt> + <dd>First definition</dd> + <dt class="green">Second definition term that should have green background</dt> + <dd class="green">Second definition that should have green background</dd> + <dt class="green">Third definition term that should have green background</dt> + <dd class="green">Third definition that should have green background</dd> + <dt>Fourth definition term</dt> + <dd>Fourth definition</dd> + <dt class="green">Fifth definition term that should have green background</dt> + <dd class="green">Fifth definition that should have green background</dd> + <dt class="green">Sixth definition term that should have green background</dt> + <dd class="green">Sixth definition that should have green background</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76.xml new file mode 100644 index 0000000000..5937f0ead7 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76.xml @@ -0,0 +1,33 @@ +<!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>NEGATED :nth-last-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:not(:nth-last-of-type(3)) { background-color : lime } +dl > *:not(:nth-last-of-type(3n+1)) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This paragraph should be unstyled.</p> +<address>This address should be unstyled.</address> +<p class="red">This paragraph should have green background.</p> +<p class="red">This paragraph should have green background.</p> +<dl> + <dt class="red">First definition term that should have green background.</dt> + <dd class="red">First definition that should also have a green background.</dd> + <dt class="red">Second definition term that should have green background.</dt> + <dd class="red">Second definition that should have green background.</dd> + <dt>Third definition term.</dt> + <dd>Third definition.</dd> + <dt class="red">Fourth definition term that should have green background.</dt> + <dd class="red">Fourth definition that should have green background.</dd> + <dt class="red">Fifth definition term that should have green background.</dt> + <dd class="red">Fifth definition that should have green background.</dd> + <dt>Sixth definition term.</dt> + <dd>Sixth definition.</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76b.xml new file mode 100644 index 0000000000..3b3048be9b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-76b.xml @@ -0,0 +1,33 @@ +<!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>NEGATED :nth-last-of-type() pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +p:not(:nth-last-of-type(3)) { background-color : red } +dl > *:not(:nth-last-of-type(3n+1)) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p>This paragraph should be unstyled.</p> +<address>This address should be unstyled.</address> +<p class="green">This paragraph should have green background.</p> +<p class="green">This paragraph should have green background.</p> +<dl> + <dt class="green">First definition term that should have green background.</dt> + <dd class="green">First definition that should also have a green background.</dd> + <dt class="green">Second definition term that should have green background.</dt> + <dd class="green">Second definition that should have green background.</dd> + <dt>Third definition term.</dt> + <dd>Third definition.</dd> + <dt class="green">Fourth definition term that should have green background.</dt> + <dd class="green">Fourth definition that should have green background.</dd> + <dt class="green">Fifth definition term that should have green background.</dt> + <dd class="green">Fifth definition that should have green background.</dd> + <dt>Sixth definition term.</dt> + <dd>Sixth definition.</dd> +</dl> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77.xml new file mode 100644 index 0000000000..e78ddcf1ab --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77.xml @@ -0,0 +1,36 @@ +<!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>NEGATED :first-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 td:not(:first-child) { background-color : lime } +p > *:not(:first-child) { background-color : lime } +table.t1 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <table class="t1" border="1"> + <tr> + <td>1.1</td> + <td class="red">green cell</td> + <td class="red">green cell</td> + </tr> + <tr> + <td>2.1</td> + <td class="red">green cell</td> + <td class="red">green cell</td> + </tr> + <tr> + <td>3.1</td> + <td class="red">green cell</td> + <td class="red">green cell</td> + </tr> + </table> + </div> + <p>This paragraph <span>should be</span> unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77b.xml new file mode 100644 index 0000000000..8225cd2601 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-77b.xml @@ -0,0 +1,36 @@ +<!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>NEGATED :first-child pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +.t1 td:not(:first-child) { background-color : red } +p > *:not(:first-child) { background-color : red } +table.t1 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <table class="t1" border="1"> + <tr> + <td>1.1</td> + <td class="green">green cell</td> + <td class="green">green cell</td> + </tr> + <tr> + <td>2.1</td> + <td class="green">green cell</td> + <td class="green">green cell</td> + </tr> + <tr> + <td>3.1</td> + <td class="green">green cell</td> + <td class="green">green cell</td> + </tr> + </table> + </div> + <p>This paragraph <span>should be</span> unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78.xml new file mode 100644 index 0000000000..415722bbdd --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78.xml @@ -0,0 +1,36 @@ +<!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>NEGATED :last-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 td:not(:last-child) { background-color : lime } +p > *:not(:last-child) { background-color : lime } +table.t1 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <table class="t1" border="1"> + <tr> + <td class="red">green cell</td> + <td class="red">green cell</td> + <td>1.3</td> + </tr> + <tr> + <td class="red">green cell</td> + <td class="red">green cell</td> + <td>2.3</td> + </tr> + <tr> + <td class="red">green cell</td> + <td class="red">green cell</td> + <td>3.3</td> + </tr> + </table> + </div> + <p>This <span>paragraph should</span> be unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78b.xml new file mode 100644 index 0000000000..207609b5f0 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-78b.xml @@ -0,0 +1,36 @@ +<!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>NEGATED :last-child pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +.t1 td:not(:last-child) { background-color : red } +p > *:not(:last-child) { background-color : red } +table.t1 td { border : thin black solid } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <div> + <table class="t1" border="1"> + <tr> + <td class="green">green cell</td> + <td class="green">green cell</td> + <td>1.3</td> + </tr> + <tr> + <td class="green">green cell</td> + <td class="green">green cell</td> + <td>2.3</td> + </tr> + <tr> + <td class="green">green cell</td> + <td class="green">green cell</td> + <td>3.3</td> + </tr> + </table> + </div> + <p>This <span>paragraph should</span> be unstyled.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-79.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-79.xml new file mode 100644 index 0000000000..fef9ea2c54 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-79.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :first-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +address { margin-bottom : 1em ; margin-left : 1em } +address:not(:first-of-type) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div>This div contains 3 addresses : +<address>A first address with normal background</address> +<address class="red">A second address that should have a green background</address> +<address class="red">A third address that should have a green background</address> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7b.xml new file mode 100644 index 0000000000..a5df860a38 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-7b.xml @@ -0,0 +1,20 @@ +<!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>Attribute multivalue selector</title> + <style type="text/css"><![CDATA[ +p { background: lime; } +[title~="hello world"] { background: red; } +/* Section 6.3.1: Represents the att attribute whose value is a +space-separated list of words, one of which is exactly "val". If this +selector is used, the words in the value must not contain spaces +(since they are separated by spaces). */ +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/this-line-lime-background.xht"/> + </head> + <body> + <p title="hello world">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-8.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-8.xml new file mode 100644 index 0000000000..67daa49273 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-8.xml @@ -0,0 +1,21 @@ +<!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>Attribute value selectors (hyphen-separated attributes)</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[lang|="en"] { background-color : lime } +address { background-color : red } +address[lang="fi"] { background-color : lime } +span[lang|="fr"] { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p lang="en-gb">This paragraph should have green background because its language is "en-gb"</p> +<address lang="fi"> +<span lang="en-us">This address should also</span> + <span lang="en-fr">have green background because the language of the inner SPANs + is not French.</span> +</address> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-80.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-80.xml new file mode 100644 index 0000000000..e8731bbe2f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-80.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :last-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +address { margin-bottom : 1em ; margin-left : 1em } +address:not(:last-of-type) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div> +<address class="red">A first address that should have a green background</address> +<address class="red">A second address that should have a green background</address> +<address>A third address with normal background</address> +This div should have three addresses above it.</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81.xml new file mode 100644 index 0000000000..73c5779466 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :only-child pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +p:not(:only-child) { background-color : lime } +div.testText > div > p { margin-left : 1em } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p class="red">This paragraph should have a green background.</p> + <div>This div contains only one paragraph. + <p>This paragraph should be unstyled.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81b.xml new file mode 100644 index 0000000000..6b084f0030 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-81b.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :only-child pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +p:not(:only-child) { background-color : lime } +div.testText > div > p { margin-left : 1em } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> + <p class="green">This paragraph should have a green background.</p> + <div>This div contains only one paragraph. + <p>This paragraph should be unstyled.</p> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82.xml new file mode 100644 index 0000000000..21fe0f88b8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :only-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.red { background-color : red } +.t1 *:not(:only-of-type) { background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div class="t1"> +<p class="red">This paragraph should have green background.</p> +<address>But this address should be unstyled.</address> +<p class="red">This paragraph should have green background.</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82b.xml new file mode 100644 index 0000000000..9f8893f885 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-82b.xml @@ -0,0 +1,19 @@ +<!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>NEGATED :only-of-type pseudo-class</title> + <style type="text/css"><![CDATA[.green { background-color : lime ! important } +.t1 *:not(:only-of-type) { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<div class="t1"> +<p class="green">This paragraph should have green background.</p> +<address>But this address should be unstyled.</address> +<p class="green">This paragraph should have green background.</p> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83-ref.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83-ref.xml new file mode 100644 index 0000000000..6ab85b3239 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83-ref.xml @@ -0,0 +1,10 @@ +<!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>This paragraph green background red</title> + <style type="text/css"><![CDATA[p { background-color : green }]]></style> + </head> + <body> + <p>This paragraph should have a green background</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83.xml new file mode 100644 index 0000000000..b5f1012262 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-83.xml @@ -0,0 +1,14 @@ +<!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>Negation pseudo-class can be an argument of itself</title> + <style type="text/css"><![CDATA[p { background-color : red } +p:not(:not(p)) { background-color : green }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://drafts.csswg.org/selectors-4/#negation-pseudo"/> + <link rel="match" href="css3-modsel-83-ref.xml"/> + </head> + <body> +<p>This paragraph should have a green background</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-86.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-86.xml new file mode 100644 index 0000000000..96507ad656 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-86.xml @@ -0,0 +1,20 @@ +<!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>Nondeterministic matching of descendant and child combinators</title> + <style type="text/css"><![CDATA[p { color: red; } +blockquote > div p { color: green; } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<blockquote> +<div> +<div> +<p>This text should be green.</p> +</div> +</div> +</blockquote> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87.xml new file mode 100644 index 0000000000..29e95de36e --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87.xml @@ -0,0 +1,18 @@ +<!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>Nondeterministic matching of direct and indirect adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: red; } +blockquote + div ~ p { color: green; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/bq-u-u-u-green.xht"/> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div>This text should be unstyled.</div> +<div>This text should be unstyled.</div> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87b.xml new file mode 100644 index 0000000000..5867fc9da3 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-87b.xml @@ -0,0 +1,18 @@ +<!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>Nondeterministic matching of direct and indirect adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: green ! important; } +blockquote + div ~ p { color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/bq-u-u-u-green.xht"/> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div>This text should be unstyled.</div> +<div>This text should be unstyled.</div> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88.xml new file mode 100644 index 0000000000..a6dc75ba75 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88.xml @@ -0,0 +1,19 @@ +<!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>Nondeterministic matching of descendant and direct adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: red; } +blockquote + div p { color: green; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div> +<div> +<p>This text should be green.</p> +</div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88b.xml new file mode 100644 index 0000000000..6c038ed5fd --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-88b.xml @@ -0,0 +1,19 @@ +<!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>Nondeterministic matching of descendant and direct adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: green ! important; } +blockquote + div p { color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div> +<div> +<p>This text should be green.</p> +</div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-89.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-89.xml new file mode 100644 index 0000000000..c9f3f25f73 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-89.xml @@ -0,0 +1,19 @@ +<!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>Simple combination of descendant and child combinators</title> + <style type="text/css"><![CDATA[p { color: red; } +blockquote div > p { color: green; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<blockquote> +<div> +<div> +<p>This text should be green.</p> +</div> +</div> +</blockquote> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-9.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-9.xml new file mode 100644 index 0000000000..3974899ee6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-9.xml @@ -0,0 +1,14 @@ +<!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>Substring matching attribute selector (beginning)</title> + <style type="text/css"><![CDATA[p { background-color : red } +p[title^="foo"] { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + </head> + <body> +<p title="foobar">This paragraph should have a green background<br></br> +because its title attribute begins with "foo"</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90.xml new file mode 100644 index 0000000000..1fc84e7978 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90.xml @@ -0,0 +1,18 @@ +<!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>Simple combination of direct and indirect adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: red; } +blockquote ~ div + p { color: green; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/bq-u-u-u-green.xht"/> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div>This text should be unstyled.</div> +<div>This text should be unstyled.</div> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90b.xml new file mode 100644 index 0000000000..33fd9d711d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-90b.xml @@ -0,0 +1,18 @@ +<!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>Simple combination of direct and indirect adjacent combinators</title> + <style type="text/css"><![CDATA[p { color: green ! important; } +blockquote ~ div + p { color: red; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/bq-u-u-u-green.xht"/> + </head> + <body> +<blockquote><div>This text should be unstyled.</div></blockquote> +<div>This text should be unstyled.</div> +<div>This text should be unstyled.</div> +<p>This text should be green.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-91.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-91.xml new file mode 100644 index 0000000000..2fc2ed6d73 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-91.xml @@ -0,0 +1,14 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Type element selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace test url(http://www.example.org/a); +testa { background-color : red } +test|testa { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<testa xmlns="http://www.example.org/a">This paragraph should have a green background</testa> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-92.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-92.xml new file mode 100644 index 0000000000..16883a4a42 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-92.xml @@ -0,0 +1,16 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Type element selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace test url(http://www.example.org/b); +div.myTest * { background-color : red } +div.myTest *|testA { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="myTest"> +<testA xmlns="http://www.example.org/b">This paragraph should have a green background</testA> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-93.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-93.xml new file mode 100644 index 0000000000..47f802396c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-93.xml @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Type element selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace test url(http://www.example.org/b); +*|testA { background-color : red } +|testA {background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<testA xmlns="">This paragraph has no declared namespace and should have a green background.</testA> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94.xml new file mode 100644 index 0000000000..4bebf5303c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94.xml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +p, q { display : block ; margin-bottom : 1em } +b|* { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p>This line should be unstyled.</p> +<p xmlns="http://www.example.org/b">This line should have a green background.</p> +<q xmlns="http://www.example.org/b">This line should have a green background.</q> +<p xmlns="http://www.example.org/a">This line should be unstyleed.</p> +<p xmlns="http://www.example.org/b">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94b.xml new file mode 100644 index 0000000000..d2ab44d297 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-94b.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +p, q { display : block ; margin-bottom : 1em } +b|* { background-color : red } +[test] { background-color: lime; }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<p>This line should be unstyled.</p> +<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p> +<q xmlns="http://www.example.org/b" test="test">This line should have a green background.</q> +<p xmlns="http://www.example.org/a">This line should be unstyled.</p> +<p xmlns="http://www.example.org/b" test="test">This line should have a green background.</p> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-95.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-95.xml new file mode 100644 index 0000000000..9ba5dd0e8f --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-95.xml @@ -0,0 +1,22 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector with universal namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.test * { background-color : red ; display : block ; margin-bottom : 1em } +div.test *|* { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> + <div class="test"> + <p>This line should have a green background</p> + <p xmlns="http://www.example.org/b">This line should have a green background</p> + <q xmlns="http://www.example.org/b">This line should have a green background</q> + <p xmlns="http://www.example.org/a">This line should have a green background</p> + <foo xmlns="http://www.example.org/b">This line should have a green background</foo> + </div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96.xml new file mode 100644 index 0000000000..8d62a81ea8 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.green * { background-color : red } +div.test * { display : block ; margin-bottom : 1em } +div.test |* { background-color : lime }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="test"> + <p>This line should be unstyled.</p> + <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA> + <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB> + <div class="green"> + <p xmlns="">This line should have a green background</p> + <elementA xmlns="">This line should have a green background</elementA> + <elementB xmlns="">This line should have a green background</elementB> + </div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96b.xml new file mode 100644 index 0000000000..5c85d67f15 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-96b.xml @@ -0,0 +1,26 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Universal selector without declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +div.green * { background-color : lime ! important } +div.test * { display : block ; margin-bottom : 1em } +div.test |* { background-color : red }]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body> +<div class="test"> + <p>This line should be unstyled.</p> + <elementA xmlns="http://www.example.org/a">This line should be unstyled.</elementA> + <elementB xmlns="http://www.example.org/b">This line should be unstyled.</elementB> + <div class="green"> + <p xmlns="">This line should have a green background</p> + <elementA xmlns="">This line should have a green background</elementA> + <elementB xmlns="">This line should have a green background</elementB> + </div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97.xml new file mode 100644 index 0000000000..a254bafb55 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97.xml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r { display : block ; margin-bottom : 1em } +*|q { background-color : red } +*[a|title] {background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p title="a paragraph">This paragraph should be unstyled.</p> + <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q> + <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97b.xml new file mode 100644 index 0000000000..71e3467f27 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-97b.xml @@ -0,0 +1,20 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute existence selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r { display : block ; margin-bottom : 1em } +*|q { background-color : lime ! important } +*[a|title] {background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p title="a paragraph">This paragraph should be unstyled.</p> + <q xmlns="http://www.example.org/a" a:title="a paragraph">This paragraph should have a green background.</q> + <r xmlns="http://www.example.org/b" b:title="a paragraph">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98.xml new file mode 100644 index 0000000000..9d68a22d6b --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q, *|t { background-color : red } +*[a|title="foo"] {background-color : lime } +*[a|title=footwo] {background-color : lime } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p title="foo">This paragraph should be unstyled.</p> + <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q> + <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s> + <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r> + <t xmlns="http://www.example.org/a" a:title="footwo">This paragraph should have a green background</t> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98b.xml new file mode 100644 index 0000000000..bf416abf82 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-98b.xml @@ -0,0 +1,21 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|q { background-color : lime ! important } +*[a|title="foo"] {background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p title="foo">This paragraph should be unstyled.</p> + <q xmlns="http://www.example.org/a" a:title="foo">This paragraph should have a green background</q> + <s xmlns="http://www.example.org/a" a:title="foobar">This paragraph should be unstyled.</s> + <r xmlns="http://www.example.org/b" b:title="foo">This paragraph should be unstyled.</r> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99.xml new file mode 100644 index 0000000000..2d385fe6f4 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99.xml @@ -0,0 +1,24 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : red } +*|*[a|foo~="bar"], *|*[|class~="bar"] { background-color : lime } +*|*[html|class~="bar"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p class="t bar u">This paragraph should have a green background.</p> + <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q> + <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r> + <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99b.xml new file mode 100644 index 0000000000..f8aff417ef --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-99b.xml @@ -0,0 +1,23 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Attribute space-separated value selector with declared namespace</title> + <style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a); +@namespace b url(http://www.example.org/b); +@namespace html url(http://www.w3.org/1999/xhtml); +*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em } +*|p, *|r { background-color : lime ! important } +*|*[a|foo~="bar"], *|*[html|class~="bar"] { background-color : red } +]]></style> + <link rel="author" title="Daniel Glazman" href="http://glazman.org/"/> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <link rel="match" href="reference/lime-bg-paras-g-u-g-u.xht"/> + <meta name="flags" content=" namespace" /> + </head> + <body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b"> + <p class="t bar u">This paragraph should have a green background.</p> + <q xmlns="http://www.example.org/a" a:foo="hgt bardot f">This paragraph should be unstyled.</q> + <r xmlns="http://www.example.org/a" a:foo="hgt bar f">This paragraph should have a green background.</r> + <s xmlns="http://www.example.org/b" b:foo="hgt bar f">This paragraph should be unstyled.</s> +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1.xml new file mode 100644 index 0000000000..144cf0e0fd --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1.xml @@ -0,0 +1,35 @@ +<!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>NEGATED Dynamic handling of :empty</title> + <style type="text/css"><![CDATA[ + #test { background: red; display: block; padding: 1em; } + #test:not(:empty) { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" dom" /> + </head> + <body> + + <div> + + <script type="text/javascript"> + <![CDATA[ + + function test() { + document.getElementById('test').appendChild(document.createTextNode('This line should be green.')); + } + + window.setTimeout("test()", 100); + ]]> + </script> + + <p> The following bar should be green. </p> + + <div id="test"></div> + + </div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1b.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1b.xml new file mode 100644 index 0000000000..f4583f843c --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d1b.xml @@ -0,0 +1,39 @@ +<!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>Dynamic handling of :empty</title> + <style type="text/css"><![CDATA[ + #test1 { background: red; display: block; padding: 1em; margin: 1em; } + #test1:empty { background: lime; } + #test2 { background: lime; display: block; padding: 1em; margin: 1em; } + #test2:empty { background: red; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" dom" /> + </head> + <body> + + <div> + + <script type="text/javascript"> + <![CDATA[ + + function test() { + document.getElementById('test1').appendChild(document.createTextNode('')); + document.getElementById('test2').appendChild(document.createTextNode(' ')); + } + + window.setTimeout("test()", 100); + ]]> + </script> + + <p> The following two bars should be green. </p> + + <div id="test1"></div> + <div id="test2"></div> + + </div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d2.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d2.xml new file mode 100644 index 0000000000..aa24e95999 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d2.xml @@ -0,0 +1,42 @@ +<!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>Dynamic handling of combinators</title> + <style type="text/css"><![CDATA[ + #test { background: red; display: block; padding: 1em; } + #stub ~ div div + div > div { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" dom" /> + </head> + <body> + + <div> + + + <script type="text/javascript"> + <![CDATA[ + + function test() { + el = document.getElementById('test'); + el.parentNode.parentNode.insertBefore(document.createElementNS('http://www.w3.org/1999/xhtml', 'div'), el.parentNode); + } + + window.setTimeout("test()", 100); + ]]> + </script> + + + + + <p> The following bar should be green. </p> + + <div id="stub"></div> + <div></div> + <div><div><!-- <div/> --><div><div id="test"></div></div></div></div> + + </div> + +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d3.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d3.xml new file mode 100644 index 0000000000..e8b15e9614 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d3.xml @@ -0,0 +1,44 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Dynamic handling of attribute selectors</title> + <style type="text/css"><![CDATA[ + [test] { background: red; display: block; padding: 1em; } + stub ~ [|attribute^=start]:not([|attribute~=mid])[|attribute*=dle][|attribute$=end] ~ t { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" dom namespace" /> + </head> + <body> + + <div> + + <script type="text/javascript"> + <![CDATA[ + + function test() { + document.getElementsByTagNameNS('', 't')[1].setAttributeNS('', 'attribute', 'start middle end'); + } + + window.setTimeout("test()", 100); + ]]> + </script> + + <p> The following block should be green. </p> + + <!-- root of selector --> + <stub xmlns=""></stub> + + <!-- middle part of selector does not match this --> + <t xmlns="" attribute="fake"></t> + + <!-- middle part of selector matches this once attribute is fixed --> + <t xmlns="" attribute="start mid dle end"></t> + + <!-- subject of selector --> + <t xmlns="" test="test"></t> + + </div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d4.xml b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d4.xml new file mode 100644 index 0000000000..73fe3a7384 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-d4.xml @@ -0,0 +1,35 @@ +<!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>Dynamic updating of :first-child and :last-child</title> + <style type="text/css"><![CDATA[ + #two:first-child { background: red; } + #three:last-child { background: lime; } +]]></style> + <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> + <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> + <meta name="flags" content=" dom" /> + </head> + <body> + + <div> + + <script type="text/javascript"> + <![CDATA[ + + function test() { + el2 = document.getElementById('two'); + el3 = document.getElementById('three'); + el2.parentNode.insertBefore(el3.nextSibling, el2); + } + + window.setTimeout("test()", 100); + ]]> + </script> + + <div><p id="two">This line should be unstyled. (2)</p><p id="three">This line should have a green background. (3)</p><p>This line should be unstyled. (4 moving to 1)</p></div> + + </div> + +</body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/bq-u-u-u-green.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/bq-u-u-u-green.xht new file mode 100644 index 0000000000..17c893cd49 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/bq-u-u-u-green.xht @@ -0,0 +1,15 @@ +<!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>Blockquote then green eventually</title> + <style type="text/css"> + p { color: green; } + </style> + </head> + <body> + <blockquote><div>This text should be unstyled.</div></blockquote> + <div>This text should be unstyled.</div> + <div>This text should be unstyled.</div> + <p>This text should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-g-u.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-g-u.xht new file mode 100644 index 0000000000..aedd173524 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-g-u.xht @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Five paragraphs lime background g u g g u</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u-u.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u-u.xht new file mode 100644 index 0000000000..2782cfc860 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u-u.xht @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Five paragraphs lime background g u g u u</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p>This paragraph should be unstyled.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u.xht new file mode 100644 index 0000000000..ee174e00e6 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-g-u.xht @@ -0,0 +1,14 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Four paragraphs lime background g u g u</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-u-g-g.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-u-g-g.xht new file mode 100644 index 0000000000..8d236dfc60 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-g-u-u-g-g.xht @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Five paragraphs lime background g u u g g</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p class="lime">This paragraph should have a green background.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-g-u-u-g.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-g-u-u-g.xht new file mode 100644 index 0000000000..1768b0ed27 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-g-u-u-g.xht @@ -0,0 +1,16 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Six paragraphs lime background u g g u u g</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-u-g-g.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-u-g-g.xht new file mode 100644 index 0000000000..d565fc0e22 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/lime-bg-paras-u-g-u-g-g.xht @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Five paragraphs lime background u g u g g</title> + <style type="text/css"> + .lime { background-color: lime } + </style> + </head> + <body> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + <p class="lime">This paragraph should have a green background.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/seven-green-divs.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/seven-green-divs.xht new file mode 100644 index 0000000000..8daf648750 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/seven-green-divs.xht @@ -0,0 +1,18 @@ +<!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>Seven green divs</title> + <style type="text/css"> + div { color: green; } + </style> + </head> + <body> + <div>This should be green.</div> + <div>This should be green.</div> + <div>This should be green.</div> + <div>This should be green.</div> + <div>This should be green.</div> + <div>This should be green.</div> + <div>This should be green.</div> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-address-p-p-p-lime-background.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-address-p-p-p-lime-background.xht new file mode 100644 index 0000000000..17f9b8c83d --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-address-p-p-p-lime-background.xht @@ -0,0 +1,18 @@ +<!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>"this line should have a green background" lime margin offset</title> + <style type="text/css"> + div, address { + background-color: lime ; + display : block ; + margin-bottom : 1em } + </style> + </head> + <body> + <address>This address should have a green background</address> + <div>This paragraph should have a green background</div> + <div>This paragraph should have a green background</div> + <div>This paragraph should have a green background</div> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-background.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-background.xht new file mode 100644 index 0000000000..35c264e149 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-background.xht @@ -0,0 +1,13 @@ +<!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>"This line should be green." green</title> + <style type="text/css"> + p { background: green; color: white; } + </style> + </head> + <body> + <p>This line should be green.</p> + <p>This line should be green.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-color.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-color.xht new file mode 100644 index 0000000000..4ae49b1dca --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-green-color.xht @@ -0,0 +1,12 @@ +<!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>"This line" green color</title> + <style type="text/css"><![CDATA[ + p { color: green } +]]></style> + </head> + <body> + <p>This line should be green.</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background-offset.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background-offset.xht new file mode 100644 index 0000000000..9fd7a450df --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background-offset.xht @@ -0,0 +1,14 @@ +<!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>"this line should have a green background" lime margin offset</title> + <style type="text/css"> + .a { background: lime; margin: 0; height: 1em; } + .b { margin: -1em 0 0 0; } + </style> + </head> + <body> + <div class="a"></div> + <div class="b">This line should have a green background.</div> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background.xht new file mode 100644 index 0000000000..72fd9d8827 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-line-lime-background.xht @@ -0,0 +1,12 @@ +<!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>"this line should have a green background" lime</title> + <style type="text/css"><![CDATA[ + p { background: lime; } +]]></style> + </head> + <body> + <p>This line should have a green background.</p> +</body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/this-test-has-passed-desc.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/this-test-has-passed-desc.xht new file mode 100644 index 0000000000..1688ca6237 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/this-test-has-passed-desc.xht @@ -0,0 +1,13 @@ +<!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>This test has PASSED</title> + <style type="text/css"> + span { background-color: lime; } + </style> + </head> + <body> + <p>This test has <span>PASSED</span>.</p> + <p>(If the previous line just reads "This test has ." then this test has failed.)</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/three-p-lime-background-except-middle.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/three-p-lime-background-except-middle.xht new file mode 100644 index 0000000000..278fa2b749 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/three-p-lime-background-except-middle.xht @@ -0,0 +1,14 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Three paragraphs lime background middle unstyled</title> + <style type="text/css"> + p { margin: 0 0 1em 0; } + .lime { background-color: lime } + </style> + </head> + <body> + <p class="lime">This paragraph should have a green background.</p> + <p>This paragraph should be unstyled.</p> + <p class="lime">This paragraph should have a green background.</p> + </body> +</html> diff --git a/testing/web-platform/tests/css/selectors/old-tests/reference/three-paragraph-lime-characters.xht b/testing/web-platform/tests/css/selectors/old-tests/reference/three-paragraph-lime-characters.xht new file mode 100644 index 0000000000..46bfede1a5 --- /dev/null +++ b/testing/web-platform/tests/css/selectors/old-tests/reference/three-paragraph-lime-characters.xht @@ -0,0 +1,13 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Three paragraphs, green</title> + <style type="text/css"> + p { color: lime } + </style> + </head> + <body> + <p>This paragraph should be in green characters.</p> + <p>This paragraph should be in green characters.</p> + <p>This paragraph should be in green characters.</p> + </body> +</html> |