diff --git a/layout/reftests/css-namespace/LICENSE b/layout/reftests/css-namespace/LICENSE new file mode 100644 index 00000000000..9cb8c8bc48a --- /dev/null +++ b/layout/reftests/css-namespace/LICENSE @@ -0,0 +1,9 @@ +W3C 3-clause BSD License + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of works must retain the original copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the original copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of the W3C nor the names of its contributors may be used to endorse or promote products derived from this work without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/layout/reftests/css-namespace/README b/layout/reftests/css-namespace/README new file mode 100644 index 00000000000..73862e45549 --- /dev/null +++ b/layout/reftests/css-namespace/README @@ -0,0 +1,2 @@ +This is the css3-namespace test suite. See +http://www.w3.org/Style/CSS/Test/CSS3/Namespace/ . diff --git a/layout/reftests/css-namespace/prefix-001.xml b/layout/reftests/css-namespace/prefix-001.xml new file mode 100644 index 00000000000..399d2e0a209 --- /dev/null +++ b/layout/reftests/css-namespace/prefix-001.xml @@ -0,0 +1,19 @@ + + + + + + CSS Namespaces Test Suite: prefix case-sensitivity + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/prefix-002.xml b/layout/reftests/css-namespace/prefix-002.xml new file mode 100644 index 00000000000..cbc1ffa0719 --- /dev/null +++ b/layout/reftests/css-namespace/prefix-002.xml @@ -0,0 +1,16 @@ + + + + + + CSS Namespaces Test Suite: empty string prefix (Explicit element namespace) + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/prefix-003.xml b/layout/reftests/css-namespace/prefix-003.xml new file mode 100644 index 00000000000..84d07c6a618 --- /dev/null +++ b/layout/reftests/css-namespace/prefix-003.xml @@ -0,0 +1,14 @@ + + + + + + CSS Namespaces Test Suite: empty string prefix (Implied element namespace) + + + This sentence should have a green background. + diff --git a/layout/reftests/css-namespace/prefix-004.xml b/layout/reftests/css-namespace/prefix-004.xml new file mode 100644 index 00000000000..6dd4925ba93 --- /dev/null +++ b/layout/reftests/css-namespace/prefix-004.xml @@ -0,0 +1,17 @@ + + + + + + CSS Namespaces Test Suite: empty string default namespace + + + This sentence should have a green background. + This sentence should have a green background. + diff --git a/layout/reftests/css-namespace/prefix-005.xml b/layout/reftests/css-namespace/prefix-005.xml new file mode 100644 index 00000000000..821720f61d3 --- /dev/null +++ b/layout/reftests/css-namespace/prefix-005.xml @@ -0,0 +1,17 @@ + + + + + + + CSS Namespaces Test Suite: no default namespace + + + This sentence should have a green background. + This sentence should have a green background. + diff --git a/layout/reftests/css-namespace/prefix-006.xml b/layout/reftests/css-namespace/prefix-006.xml new file mode 100644 index 00000000000..8eace8601ad --- /dev/null +++ b/layout/reftests/css-namespace/prefix-006.xml @@ -0,0 +1,22 @@ + + + + + + CSS Namespaces Test Suite: no prefix + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-1-block.xml b/layout/reftests/css-namespace/ref-lime-1-block.xml new file mode 100644 index 00000000000..22fe7684c8e --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-1-block.xml @@ -0,0 +1,10 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-1-generic.xml b/layout/reftests/css-namespace/ref-lime-1-generic.xml new file mode 100644 index 00000000000..e71352b886a --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-1-generic.xml @@ -0,0 +1,11 @@ + + + + + CSS Namespaces Test Suite reference + + + This sentence should have a green background. + diff --git a/layout/reftests/css-namespace/ref-lime-1.xml b/layout/reftests/css-namespace/ref-lime-1.xml new file mode 100644 index 00000000000..a1d80970df2 --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-1.xml @@ -0,0 +1,10 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-2-generic.xml b/layout/reftests/css-namespace/ref-lime-2-generic.xml new file mode 100644 index 00000000000..1955745aae5 --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-2-generic.xml @@ -0,0 +1,13 @@ + + + + + CSS Namespaces Test Suite reference + + + This sentence should have a green background. + This sentence should have a green background. + diff --git a/layout/reftests/css-namespace/ref-lime-2.xml b/layout/reftests/css-namespace/ref-lime-2.xml new file mode 100644 index 00000000000..e577cf9c026 --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-2.xml @@ -0,0 +1,11 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-3.xml b/layout/reftests/css-namespace/ref-lime-3.xml new file mode 100644 index 00000000000..9e1d9fea57f --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-3.xml @@ -0,0 +1,12 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-5.xml b/layout/reftests/css-namespace/ref-lime-5.xml new file mode 100644 index 00000000000..9a768d57e07 --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-5.xml @@ -0,0 +1,14 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/ref-lime-6.xml b/layout/reftests/css-namespace/ref-lime-6.xml new file mode 100644 index 00000000000..410eb36dc5f --- /dev/null +++ b/layout/reftests/css-namespace/ref-lime-6.xml @@ -0,0 +1,15 @@ + + + + + CSS Namespaces Test Suite reference + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/reftest.list b/layout/reftests/css-namespace/reftest.list new file mode 100644 index 00000000000..19b23af080b --- /dev/null +++ b/layout/reftests/css-namespace/reftest.list @@ -0,0 +1,23 @@ +== syntax-001.xml ref-lime-1-block.xml +== syntax-002.xml ref-lime-1-block.xml +== syntax-003.xml ref-lime-5.xml +== syntax-004.xml ref-lime-1.xml +== syntax-005.xml ref-lime-5.xml +== syntax-006.xml ref-lime-1.xml +== syntax-007.xml ref-lime-1.xml +== syntax-008.xml ref-lime-2.xml +== syntax-009.xml ref-lime-1.xml +== syntax-010.xml ref-lime-3.xml +== syntax-011.xml ref-lime-6.xml +== syntax-012.xml ref-lime-3.xml +fails == syntax-013.xml ref-lime-5.xml # bug 476856 +== syntax-014.xml ref-lime-3.xml +== syntax-015.xml ref-lime-1.xml +== scope-001.xml ref-lime-1.xml +== scope-002.xml ref-lime-1.xml +== prefix-001.xml ref-lime-1.xml +== prefix-002.xml ref-lime-1.xml +== prefix-003.xml ref-lime-1-generic.xml +== prefix-004.xml ref-lime-2-generic.xml +== prefix-005.xml ref-lime-2-generic.xml +== prefix-006.xml ref-lime-2.xml diff --git a/layout/reftests/css-namespace/scope-001.xml b/layout/reftests/css-namespace/scope-001.xml new file mode 100644 index 00000000000..ad6774d3039 --- /dev/null +++ b/layout/reftests/css-namespace/scope-001.xml @@ -0,0 +1,19 @@ + + + + + + + CSS Namespaces Test Suite: scope <style> + + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/scope-002.xml b/layout/reftests/css-namespace/scope-002.xml new file mode 100644 index 00000000000..d6b5332a96e --- /dev/null +++ b/layout/reftests/css-namespace/scope-002.xml @@ -0,0 +1,20 @@ + + + + + + CSS Namespaces Test Suite: scope @import + + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/support/fail.css b/layout/reftests/css-namespace/support/fail.css new file mode 100644 index 00000000000..1c2d64c7e78 --- /dev/null +++ b/layout/reftests/css-namespace/support/fail.css @@ -0,0 +1 @@ +* { background:red ! important } diff --git a/layout/reftests/css-namespace/support/scope-002a.css b/layout/reftests/css-namespace/support/scope-002a.css new file mode 100644 index 00000000000..a8d20ba8124 --- /dev/null +++ b/layout/reftests/css-namespace/support/scope-002a.css @@ -0,0 +1,3 @@ +@namespace x url("test"); +@namespace y url("test"); +w|test { background:red } diff --git a/layout/reftests/css-namespace/support/scope-002b.css b/layout/reftests/css-namespace/support/scope-002b.css new file mode 100644 index 00000000000..0c0d032a0e4 --- /dev/null +++ b/layout/reftests/css-namespace/support/scope-002b.css @@ -0,0 +1,2 @@ +y|test { background: red } + diff --git a/layout/reftests/css-namespace/support/syntax-007.css b/layout/reftests/css-namespace/support/syntax-007.css new file mode 100644 index 00000000000..65d1fa73a0d --- /dev/null +++ b/layout/reftests/css-namespace/support/syntax-007.css @@ -0,0 +1,5 @@ +@charset "UTF-8"; +@namespace url("test"); +@namespace url("test2"); +*|test { background:lime } +test { background:red } diff --git a/layout/reftests/css-namespace/syntax-001.xml b/layout/reftests/css-namespace/syntax-001.xml new file mode 100644 index 00000000000..3954374e1fa --- /dev/null +++ b/layout/reftests/css-namespace/syntax-001.xml @@ -0,0 +1,15 @@ + + + + + + CSS Namespaces Test Suite: @namespace case-insensitivity + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-002.xml b/layout/reftests/css-namespace/syntax-002.xml new file mode 100644 index 00000000000..5373d5f3732 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-002.xml @@ -0,0 +1,15 @@ + + + + + + CSS Namespaces Test Suite: @namespace syntax with escapes + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-003.xml b/layout/reftests/css-namespace/syntax-003.xml new file mode 100644 index 00000000000..3202eda0fae --- /dev/null +++ b/layout/reftests/css-namespace/syntax-003.xml @@ -0,0 +1,38 @@ + + + + + + CSS Namespaces Test Suite: @namespace default namespace syntax + + + + + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-004.xml b/layout/reftests/css-namespace/syntax-004.xml new file mode 100644 index 00000000000..70c4c4b09b7 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-004.xml @@ -0,0 +1,16 @@ + + + + + + CSS Namespaces Test Suite: @namespace url() with escape + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-005.xml b/layout/reftests/css-namespace/syntax-005.xml new file mode 100644 index 00000000000..e3bdaade3a6 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-005.xml @@ -0,0 +1,26 @@ + + + + + + CSS Namespaces Test Suite: @namespace string and url() syntax + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-006.xml b/layout/reftests/css-namespace/syntax-006.xml new file mode 100644 index 00000000000..e5233200717 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-006.xml @@ -0,0 +1,19 @@ + + + + + + + CSS Namespaces Test Suite: invalid ordering of @namespace and @import + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-007.xml b/layout/reftests/css-namespace/syntax-007.xml new file mode 100644 index 00000000000..e740e6a3a1f --- /dev/null +++ b/layout/reftests/css-namespace/syntax-007.xml @@ -0,0 +1,12 @@ + + + + + + CSS Namespaces Test Suite: @namespace and @charset + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-008.xml b/layout/reftests/css-namespace/syntax-008.xml new file mode 100644 index 00000000000..95ea772a5fb --- /dev/null +++ b/layout/reftests/css-namespace/syntax-008.xml @@ -0,0 +1,22 @@ + + + + + + CSS Namespaces Test Suite: escapes in prefix + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-009.xml b/layout/reftests/css-namespace/syntax-009.xml new file mode 100644 index 00000000000..1908a4edaeb --- /dev/null +++ b/layout/reftests/css-namespace/syntax-009.xml @@ -0,0 +1,17 @@ + + + + + + CSS Namespaces Test Suite: escaped vertical bar in qualified name + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-010.xml b/layout/reftests/css-namespace/syntax-010.xml new file mode 100644 index 00000000000..1a0a5d6252a --- /dev/null +++ b/layout/reftests/css-namespace/syntax-010.xml @@ -0,0 +1,34 @@ + + + + + + CSS Namespaces Test Suite: duplicate @namespace declarations + + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-011.xml b/layout/reftests/css-namespace/syntax-011.xml new file mode 100644 index 00000000000..0fc0410b0d1 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-011.xml @@ -0,0 +1,46 @@ + + + + + + CSS Namespaces Test Suite: string comparison (no URI resolving) + + + + + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-012.xml b/layout/reftests/css-namespace/syntax-012.xml new file mode 100644 index 00000000000..0985e898d40 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-012.xml @@ -0,0 +1,30 @@ + + + + + + CSS Namespaces Test Suite: whitespace and comment handling + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-013.xml b/layout/reftests/css-namespace/syntax-013.xml new file mode 100644 index 00000000000..1eda3ee1c20 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-013.xml @@ -0,0 +1,43 @@ + + + + + + + + CSS Namespaces Test Suite: @namespace error handling + + + + + + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-014.xml b/layout/reftests/css-namespace/syntax-014.xml new file mode 100644 index 00000000000..ad196f3a542 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-014.xml @@ -0,0 +1,30 @@ + + + + + + + CSS Namespaces Test Suite: @namespace and invalid at-rules + + + + + +

This sentence should have a green background.

+

This sentence should have a green background.

+

This sentence should have a green background.

+ + diff --git a/layout/reftests/css-namespace/syntax-015.xml b/layout/reftests/css-namespace/syntax-015.xml new file mode 100644 index 00000000000..5af0b5013b9 --- /dev/null +++ b/layout/reftests/css-namespace/syntax-015.xml @@ -0,0 +1,17 @@ + + + + + + CSS Namespaces Test Suite: invalid URI + + + +

This sentence should have a green background.

+ + diff --git a/layout/reftests/reftest.list b/layout/reftests/reftest.list index db1c7bac952..6d18a18bcd8 100644 --- a/layout/reftests/reftest.list +++ b/layout/reftests/reftest.list @@ -47,6 +47,9 @@ include css-gradients/reftest.list # css media queries (tests for print mode) include css-mediaqueries/reftest.list +# css namespaces +include css-namespace/reftest.list + # css values and units include css-valuesandunits/reftest.list