summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-gcpm/using-strings-003.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-gcpm/using-strings-003.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-gcpm/using-strings-003.html')
-rw-r--r--testing/web-platform/tests/css/css-gcpm/using-strings-003.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-gcpm/using-strings-003.html b/testing/web-platform/tests/css/css-gcpm/using-strings-003.html
new file mode 100644
index 0000000000..8a997c3309
--- /dev/null
+++ b/testing/web-platform/tests/css/css-gcpm/using-strings-003.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Test: using 'start' property of named strings</title>
+<link rel="author" title="Dave Cramer" href="mailto:dauwhe@gmail.com">
+<link rel="help" href="http://www.w3.org/TR/css-gcpm-3/#string-start">
+<meta name="flags" content="paged">
+<meta name="assert" content="Test checks that the string set at the beginning of a page is used when the start property is applied">
+<style>
+ @page {
+ @top-center {
+ content: string(section, start);
+ }
+ }
+
+ h2 {
+ string-set: section content();
+ }
+
+ #s2 { page-break-before: always; }
+#s4 { page-break-after: always; }
+
+</style>
+</head>
+<body>
+<p>Note: this test has three pages</p>
+<p>Test passes if:</p>
+
+<ol>
+<li>
+On page one, the running head is empty.
+</li>
+<li>
+On page two, the running head is “Section Two”
+</li>
+<li>
+On page three, the running head is “Section Four”
+</li>
+</ol>
+<h2 id="s1">Section One</h2>
+<p id="p1">Bacon ipsum dolor sit amet brisket sunt kielbasa, sed rump fatback shankle. Non exercitation aliquip culpa shankle. Sausage pork kevin, doner meatloaf venison cupidatat. Salami frankfurter spare ribs kielbasa culpa commodo incididunt. Tri-tip pork belly pig ut ground round est, turkey drumstick nisi quis. Occaecat nisi tempor cupidatat, ground round exercitation in turducken. Filet mignon cow pork bacon tri-tip fugiat mollit kevin et.</p>
+<h2 id="s2">Section Two</h2>
+<p>
+Fatback excepteur ex ut shank do ham. Sausage sirloin turducken velit ex spare ribs quis. Quis in turkey, labore sirloin fatback exercitation proident. In rump reprehenderit voluptate aute ribeye excepteur pig venison. Culpa laboris in nostrud, kevin leberkas non tri-tip commodo qui tenderloin. Id non short ribs elit, ut excepteur cow venison duis do.
+</p>
+<h2 id="s3">Section Three</h2>
+<p>
+Ullamco strip steak aliqua bacon ut sirloin turkey pork chop, ball tip jowl. Commodo pancetta prosciutto, meatloaf eiusmod aliquip chicken occaecat pig. Ut in pork, short ribs chuck t-bone kielbasa irure jowl occaecat cupidatat nostrud officia. Dolore ball tip cupidatat labore esse ut, magna leberkas irure kevin nostrud aute eu pariatur eiusmod. Nostrud pancetta labore, eu est mollit jerky ham hock. Shoulder aliquip dolore eu corned beef strip steak commodo.
+</p>
+<h2 id="s4">Section Four</h2>
+<p>
+Frankfurter prosciutto fatback beef ribs brisket, flank consectetur proident cupidatat ham hock enim pig eu bresaola. Qui ball tip consequat short loin salami. Tri-tip tempor et, adipisicing commodo ground round ball tip andouille doner. Short loin officia ea ground round shank.
+</p>
+<h2 id="s5">Section Five</h2>
+<p>Biltong in capicola commodo tenderloin irure, labore drumstick aute tri-tip veniam. Labore dolore doner ex, meatloaf tempor meatball id flank do turkey. Pig culpa ut prosciutto rump. Tongue chicken qui andouille, pork loin pork chop salami ut. Eu ea qui dolore pork chop ground round.</p>
+<h2 id="s6">Section Six</h2>
+<p>Ham hock jowl filet mignon pastrami beef turducken. Brisket pork chop pork loin drumstick capicola ground round shankle andouille leberkas tenderloin turducken chuck t-bone kevin turkey. Turkey brisket shank, cow pork belly strip steak bresaola chicken short ribs biltong. Kevin jowl meatloaf capicola t-bone ham brisket leberkas. Pork strip steak drumstick jerky, flank shankle capicola turkey spare ribs.</p>
+</body>
+</html>