summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html
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/conformance-checkers/html-its/elementswithintext/html
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/conformance-checkers/html-its/elementswithintext/html')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html33
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html33
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html39
6 files changed, 124 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html
new file mode 100644
index 0000000000..f3a56b5717
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1html.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="withintext1htmlrules.xml" rel="its-rules">
+ <title>Appaloosa</title>
+ </head>
+ <body>
+ <section itemscope>
+ <h2>keywords</h2>
+ <span itemprop="keyword">horse</span>
+ <span itemprop="keyword">appaloosa</span>
+ </section>
+ <p itemscope>
+ The Appaloosa
+ <cite>
+ The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho.
+ </cite>
+ are rugged horses originally breed by the
+ <span itemprop="keyword">Nez-Perce</span>
+ tribe in the US Northwest.
+ </p>
+ <p>
+ They are often characterized by their spotted coats, as shown here:
+ <img src="appaloosa.png" alt="Appaloosa horses">
+ </p>
+<!--footer-->
+ <p>
+ Copyright:
+ <em>Zebulon Inc.</em>
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml
new file mode 100644
index 0000000000..5d49bbcd5b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext1htmlrules.xml
@@ -0,0 +1,4 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:withinTextRule selector="//h:cite" withinText="nested"/>
+</its:rules>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html
new file mode 100644
index 0000000000..ed7e06095f
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext2html.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset=utf-8>
+ <title>Within text test: Default</title>
+ </head>
+ <body>
+ <p>Text with <span its-within-text="YES">bold</span>.</p>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html
new file mode 100644
index 0000000000..9079e6f2ed
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3html.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+ <meta charset=utf-8>
+ <link href="withintext3htmlrules.xml" rel="its-rules">
+ <title>Appaloosa</title>
+ </head>
+ <body>
+ <section itemscope>
+ <h2>keywords</h2>
+ <span itemprop="firstkeyword">horse</span>
+ <span itemprop="secondkeyword">appaloosa</span>
+ </section>
+ <p itemscope>
+ The Appaloosa
+ <cite>
+ The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho.
+ </cite>
+ are rugged horses originally breed by the
+ <span itemprop="keyword">Nez-Perce</span>
+ tribe in the US Northwest.
+ </p>
+ <p>
+ They are often characterized by their spotted coats, as shown here:
+ <img src="appaloosa.png" alt="Appaloosa horses">
+ </p>
+<!--footer-->
+ <p>
+ Copyright:
+ <em>Zebulon Inc.</em>
+ </p>
+ </body>
+ </html>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml
new file mode 100644
index 0000000000..127dea6b73
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext3htmlrules.xml
@@ -0,0 +1,5 @@
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="withinTextParam">firstkeyword</its:param>
+<its:withinTextRule selector="//h:cite" withinText="nested"/>
+<its:withinTextRule selector="//h:section/h:span[@itemprop=$withinTextParam]" withinText="no"/>
+</its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html
new file mode 100644
index 0000000000..5458106525
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/elementswithintext/html/withintext4html.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+ <html>
+ <head>
+<script type="application/its+xml">
+<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0">
+<its:param name="withinparam">copyright</its:param>
+<its:withinTextRule selector="//h:cite" withinText="nested"/>
+<its:withinTextRule selector="//h:p[@id=$withinparam]" withinText="yes"/>
+</its:rules>
+</script>
+ <meta charset=utf-8>
+ <title>Appaloosa</title>
+ </head>
+ <body>
+ <section itemscope>
+ <h2>keywords</h2>
+ <span itemprop="keyword">horse</span>
+ <span itemprop="keyword">appaloosa</span>
+ </section>
+ <p itemscope>
+ The Appaloosa
+ <cite>
+ The name comes from "Palouse horse" in reference to the Palouse River in Northern Idaho.
+ </cite>
+ are rugged horses originally breed by the
+ <span itemprop="keyword">Nez-Perce</span>
+ tribe in the US Northwest.
+ </p>
+ <p>
+ They are often characterized by their spotted coats, as shown here:
+ <img src="appaloosa.png" alt="Appaloosa horses">
+ </p>
+<!--footer-->
+ <p id="copyright">
+ Copyright:
+ <em>Zebulon Inc.</em>
+ </p>
+ </body>
+ </html>