summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/other-formats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/css/CSS2/other-formats
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/other-formats')
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/background-color-176.html40
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/control-characters-001.html52
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-001.html23
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-002.html18
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/README2
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.css5
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.xml22
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-19-alt.xml25
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.css6
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.xml23
-rw-r--r--testing/web-platform/tests/css/CSS2/other-formats/xml/background-20.xml15
11 files changed, 231 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/background-color-176.html b/testing/web-platform/tests/css/CSS2/other-formats/background-color-176.html
new file mode 100644
index 0000000000..e127d46034
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/background-color-176.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+
+<html>
+
+ <head>
+
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+
+ <title>CSS Test: background-color</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+ <link rel="author" title="Jukka 'Yucca' Korpela" href="http://www.cs.tut.fi/~jkorpela/personal.html">
+ <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
+ <meta name="flags" content="HTMLonly">
+ <meta name="assert" content="Background-color applied to a form should not affect a previous sibling block-level element when it does not have an optional closing tag.">
+
+ <style type="text/css">
+ form
+ {
+ background-color: orange;
+ color: white;
+ padding: 50px;
+ }
+ </style>
+
+ </head>
+
+ <body>
+
+ <div>There should be 1 (and only 1) wide orange rectangle across the page</div>
+
+ <p>
+
+ <form action="">
+ <div></div>
+ </form>
+
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/control-characters-001.html b/testing/web-platform/tests/css/CSS2/other-formats/control-characters-001.html
new file mode 100644
index 0000000000..85d70d4a07
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/control-characters-001.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Control Characters between (00 and 1F)</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props" />
+ <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-processing"/>
+ <meta name="flags" content="HTMLonly" />
+ <meta name="assert" content="Handling and processing of control characters." />
+ <style type="text/css">
+ div
+ {
+ border: 1px solid black;
+ height: 1.2em;
+ padding-left: 1em;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if there is only a single character in each box below or the box is empty.</p>
+ <!-- C0 Control Characters -->
+ <div>&#x00;</div>
+ <div>&#x01;</div>
+ <div>&#x02;</div>
+ <div>&#x03;</div>
+ <div>&#x04;</div>
+ <div>&#x05;</div>
+ <div>&#x06;</div>
+ <div>&#x07;</div>
+ <div>&#x08;</div>
+ <div>&#x0B;</div>
+ <div>&#x0C;</div>
+ <div>&#x0E;</div>
+ <div>&#x0F;</div>
+ <div>&#x10;</div>
+ <div>&#x11;</div>
+ <div>&#x12;</div>
+ <div>&#x13;</div>
+ <div>&#x14;</div>
+ <div>&#x15;</div>
+ <div>&#x16;</div>
+ <div>&#x17;</div>
+ <div>&#x18;</div>
+ <div>&#x19;</div>
+ <div>&#x1A;</div>
+ <div>&#x1B;</div>
+ <div>&#x1C;</div>
+ <div>&#x1D;</div>
+ <div>&#x1E;</div>
+ <div>&#x1F;</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-001.html b/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-001.html
new file mode 100644
index 0000000000..23cba235f6
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-001.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: xml:lang attribute selector in HTML</title>
+ <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
+ <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+ <meta name="flags" content="HTMLonly">
+ <meta name="assert" content="xml:lang in HTML cannot be selected by [lang] selectors.">
+ <style type="text/css">
+ [lang] { background: red; color: yellow; }
+ [lang="ch"] { background: red; color: yellow; }
+ [lang|="ch"] { background: red; color: yellow; }
+ [lang~="ch"] { background: red; color: yellow; }
+ [xml:lang] { background: red; color: yellow; }
+ [xml:lang|="ch"] { background: red; color: yellow; }
+ </style>
+ </head>
+ <body>
+ <p xml:lang="ch">There must be no red.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-002.html b/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-002.html
new file mode 100644
index 0000000000..5e86e8d0be
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml-lang-selectors-002.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <title>CSS Test: xml:lang with :lang() selector in HTML</title>
+ <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
+ <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
+ <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
+ <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
+ <meta name="flags" content="HTMLonly">
+ <meta name="assert" content="xml:lang in HTML cannot apply language for :lang() selectors.">
+ <style type="text/css">
+ :lang(ch) { background: red; color: yellow; }
+ </style>
+ </head>
+ <body>
+ <p xml:lang="ch">There must be no red.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/README b/testing/web-platform/tests/css/CSS2/other-formats/xml/README
new file mode 100644
index 0000000000..0485715fb1
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/README
@@ -0,0 +1,2 @@
+This directory is for non-HTML non-XHTML test files.
+They need to be hand-indexed separately.
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.css b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.css
new file mode 100644
index 0000000000..31af564064
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.css
@@ -0,0 +1,5 @@
+
+ generic { background: green; border: lime 1em solid; margin: 1em; padding: 1em; color: yellow; }
+ generic, p { display: block; }
+ a[*|href] { color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
+ * { margin: 1em; padding: 1em; }
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.xml b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.xml
new file mode 100644
index 0000000000..54511ed24d
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-18.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE generic>
+
+<?xml-stylesheet type="text/css" href="18.css" ?>
+
+<generic xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <!-->CSS Test: Background: Test Eighteen</-->
+
+ <generic>
+
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/21.xml" type="application/xhtml+xml"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/CSS2/colors.html#background"/> <!-- I have no real idea of what this is trying to test -->
+
+ <p> This is an XML document. This paragraph and the links below
+ should have two lime borders surrounding them, and the
+ background EVERYWHERE should be green. Including the canvas. THE
+ ROOT ELEMENT SHOULD NOT STRETCH TO FIT THE VIEWPORT! </p>
+
+ </generic>
+
+</generic>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19-alt.xml b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19-alt.xml
new file mode 100644
index 0000000000..c2891d2835
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19-alt.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!DOCTYPE root>
+
+<?xml-stylesheet type="text/css" href="19.css" ?>
+
+<root>
+
+ <generic xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/21.xml" type="application/xhtml+xml"/>
+
+ <!-->CSS Test: Background: Test Nineteen</-->
+
+ This is an XML document. This paragraph should have one long
+ lime border surrounding each line, since this text is the root
+ element and the root element is an inline element.
+
+ The background EVERYWHERE should be green. Including the canvas.
+ THE ROOT ELEMENT SHOULD NOT STRETCH TO FIT THE VIEWPORT!
+
+ <a xlink:type="simple" xlink:href="19.xml">THIS PAGE SHOULD LOOK EXACTLY LIKE THIS ALTERNATIVE!</a>
+
+ </generic>
+
+</root>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.css b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.css
new file mode 100644
index 0000000000..e5ac35ace8
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.css
@@ -0,0 +1,6 @@
+
+ generic { background: green; border: lime 1em solid; margin: 1em; padding: 1em; color: yellow; }
+ generic { display: inline; line-height: 7em; }
+ a[*|href] { color: inherit; background: transparent; text-decoration: underline; cursor: pointer; }
+ * { margin: 1em; padding: 1em; }
+ root { padding: 0; margin: 0; background: transparent; background: green; } \ No newline at end of file
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.xml b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.xml
new file mode 100644
index 0000000000..d20be7eb8a
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-19.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!DOCTYPE generic>
+
+<?xml-stylesheet type="text/css" href="19.css" ?>
+
+<generic xmlns:xlink="http://www.w3.org/1999/xlink">
+
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/21.xml" type="application/xhtml+xml"/>
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/CSS2/colors.html#background"/> <!-- I have no real idea of what this is trying to test -->
+ <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="background-19-alt.xml"/>
+
+ <!-->CSS Test: Background: Test Nineteen</-->
+
+ This is an XML document. This paragraph should have one long
+ lime border surrounding each line, since this text is the root
+ element and the root element is an inline element.
+
+ The background EVERYWHERE should be green. Including the canvas.
+ THE ROOT ELEMENT SHOULD NOT STRETCH TO FIT THE VIEWPORT!
+
+ <a xlink:type="simple" xlink:href="19-alt.xml">THIS PAGE SHOULD LOOK EXACTLY LIKE THIS ALTERNATIVE!</a>
+
+</generic>
diff --git a/testing/web-platform/tests/css/CSS2/other-formats/xml/background-20.xml b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-20.xml
new file mode 100644
index 0000000000..b1029c12f7
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/other-formats/xml/background-20.xml
@@ -0,0 +1,15 @@
+<generic>
+<head xmlns="http://www.w3.org/1999/xhtml">
+ <title>Background (non-)propagation in XML</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/20.xml" type="application/xhtml+xml"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background" />
+ <style type="text/css">
+ body { background: red; }
+ p, a { background: green; color: white; }
+ </style>
+ </head>
+ <body xmlns="http://www.w3.org/1999/xhtml">
+ <p>This document should have one line of green.</p>
+ </body>
+</generic>