summaryrefslogtreecommitdiff
path: root/tests/ref/html
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-24 13:11:26 +0100
committerGitHub <noreply@github.com>2025-01-24 12:11:26 +0000
commit26e65bfef5b1da7f6c72e1409237cf03fb5d6069 (patch)
treedae6f71efead43736202dd6aea933b95b1bc7a14 /tests/ref/html
parent467968af0788a3059e1bed47f9daee846f5b3904 (diff)
Semantic paragraphs (#5746)
Diffstat (limited to 'tests/ref/html')
-rw-r--r--tests/ref/html/enum-par.html36
-rw-r--r--tests/ref/html/list-par.html36
-rw-r--r--tests/ref/html/par-semantic-html.html16
-rw-r--r--tests/ref/html/quote-attribution-link.html2
-rw-r--r--tests/ref/html/quote-plato.html4
-rw-r--r--tests/ref/html/terms-par.html42
6 files changed, 133 insertions, 3 deletions
diff --git a/tests/ref/html/enum-par.html b/tests/ref/html/enum-par.html
new file mode 100644
index 00000000..60d4592b
--- /dev/null
+++ b/tests/ref/html/enum-par.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <ol>
+ <li>Hello</li>
+ <li>World</li>
+ </ol>
+ </div>
+ <div>
+ <ol>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ </li>
+ <li>World</li>
+ </ol>
+ </div>
+ <div>
+ <ol>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ <p>The</p>
+ </li>
+ <li>
+ <p>World</p>
+ </li>
+ </ol>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/list-par.html b/tests/ref/html/list-par.html
new file mode 100644
index 00000000..7c747ff4
--- /dev/null
+++ b/tests/ref/html/list-par.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <ul>
+ <li>Hello</li>
+ <li>World</li>
+ </ul>
+ </div>
+ <div>
+ <ul>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ </li>
+ <li>World</li>
+ </ul>
+ </div>
+ <div>
+ <ul>
+ <li>
+ <p>Hello</p>
+ <p>From</p>
+ <p>The</p>
+ </li>
+ <li>
+ <p>World</p>
+ </li>
+ </ul>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/par-semantic-html.html b/tests/ref/html/par-semantic-html.html
new file mode 100644
index 00000000..09c7d2fd
--- /dev/null
+++ b/tests/ref/html/par-semantic-html.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <h2>Heading is no paragraph</h2>
+ <p>I'm a paragraph.</p>
+ <div>I'm not.</div>
+ <div>
+ <p>We are two.</p>
+ <p>So we are paragraphs.</p>
+ </div>
+ </body>
+</html>
diff --git a/tests/ref/html/quote-attribution-link.html b/tests/ref/html/quote-attribution-link.html
index 753807db..c12d2ae2 100644
--- a/tests/ref/html/quote-attribution-link.html
+++ b/tests/ref/html/quote-attribution-link.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
- <blockquote cite="https://typst.app/home"> Compose papers faster </blockquote>
+ <blockquote cite="https://typst.app/home">Compose papers faster</blockquote>
<p>— <a href="https://typst.app/home">typst.com</a></p>
</body>
</html>
diff --git a/tests/ref/html/quote-plato.html b/tests/ref/html/quote-plato.html
index f516adc2..03983508 100644
--- a/tests/ref/html/quote-plato.html
+++ b/tests/ref/html/quote-plato.html
@@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
- <blockquote> … ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι. </blockquote>
+ <blockquote>… ἔοικα γοῦν τούτου γε σμικρῷ τινι αὐτῷ τούτῳ σοφώτερος εἶναι, ὅτι ἃ μὴ οἶδα οὐδὲ οἴομαι εἰδέναι.</blockquote>
<p>— Plato</p>
- <blockquote> … I seem, then, in just this little thing to be wiser than this man at any rate, that what I do not know I do not think I know either. </blockquote>
+ <blockquote>… I seem, then, in just this little thing to be wiser than this man at any rate, that what I do not know I do not think I know either.</blockquote>
<p>— from the Henry Cary literal translation of 1897</p>
</body>
</html>
diff --git a/tests/ref/html/terms-par.html b/tests/ref/html/terms-par.html
new file mode 100644
index 00000000..78bc5df1
--- /dev/null
+++ b/tests/ref/html/terms-par.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>A</dd>
+ <dt>World</dt>
+ <dd>B</dd>
+ </dl>
+ </div>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>
+ <p>A</p>
+ <p>From</p>
+ </dd>
+ <dt>World</dt>
+ <dd>B</dd>
+ </dl>
+ </div>
+ <div>
+ <dl>
+ <dt>Hello</dt>
+ <dd>
+ <p>A</p>
+ <p>From</p>
+ <p>The</p>
+ </dd>
+ <dt>World</dt>
+ <dd>
+ <p>B</p>
+ </dd>
+ </dl>
+ </div>
+ </body>
+</html>