summaryrefslogtreecommitdiffstats
path: root/layout/reftests/counter-style
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/counter-style
parentInitial commit. (diff)
downloadthunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.tar.xz
thunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.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 'layout/reftests/counter-style')
-rw-r--r--layout/reftests/counter-style/ref-common.css12
-rw-r--r--layout/reftests/counter-style/reftest.list1
-rw-r--r--layout/reftests/counter-style/test-common.css18
-rw-r--r--layout/reftests/counter-style/too-long-representation-ref.html6
-rw-r--r--layout/reftests/counter-style/too-long-representation.html33
5 files changed, 70 insertions, 0 deletions
diff --git a/layout/reftests/counter-style/ref-common.css b/layout/reftests/counter-style/ref-common.css
new file mode 100644
index 0000000000..92d77de0e5
--- /dev/null
+++ b/layout/reftests/counter-style/ref-common.css
@@ -0,0 +1,12 @@
+body {
+ /* to match ua.css, see bug 1020143 */
+ font-variant-numeric: tabular-nums;
+}
+div, p {
+ padding: 0; margin: 0;
+ line-height: 150%;
+ float: left;
+}
+p {
+ padding-right: .5em;
+}
diff --git a/layout/reftests/counter-style/reftest.list b/layout/reftests/counter-style/reftest.list
new file mode 100644
index 0000000000..8e99c7ba4f
--- /dev/null
+++ b/layout/reftests/counter-style/reftest.list
@@ -0,0 +1 @@
+== too-long-representation.html too-long-representation-ref.html
diff --git a/layout/reftests/counter-style/test-common.css b/layout/reftests/counter-style/test-common.css
new file mode 100644
index 0000000000..dcbf4e1e02
--- /dev/null
+++ b/layout/reftests/counter-style/test-common.css
@@ -0,0 +1,18 @@
+body {
+ /* to match ua.css, see bug 1020143 */
+ font-variant-numeric: tabular-nums;
+}
+ol, ul, section, p {
+ padding: 0; margin: 0;
+ line-height: 150%;
+}
+ol, ul {
+ list-style-position: inside;
+}
+li, p {
+ float: left;
+ padding: 0;
+}
+p {
+ padding-right: .5em;
+}
diff --git a/layout/reftests/counter-style/too-long-representation-ref.html b/layout/reftests/counter-style/too-long-representation-ref.html
new file mode 100644
index 0000000000..9908fe73a3
--- /dev/null
+++ b/layout/reftests/counter-style/too-long-representation-ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<link rel="stylesheet" href="ref-common.css">
+<div>1000</div>
+<div>100.&nbsp;</div>
+<div>1000</div>
+<div>100.&nbsp;</div>
diff --git a/layout/reftests/counter-style/too-long-representation.html b/layout/reftests/counter-style/too-long-representation.html
new file mode 100644
index 0000000000..c09fc89ec4
--- /dev/null
+++ b/layout/reftests/counter-style/too-long-representation.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<link rel="stylesheet" href="test-common.css">
+<style type="text/css">
+ @counter-style a {
+ /* system: symbolic; */
+ symbols: '*' \2051 \2020 \2021;
+ suffix: '';
+ }
+ @counter-style b {
+ symbols: \10300;
+ }
+ @counter-style c {
+ system: additive;
+ additive-symbols: 6 \2685, 5 \2684, 4 \2683, 3 \2682, 2 \2681, 1 \2680;
+ suffix: "";
+ }
+ @counter-style d {
+ system: additive;
+ additive-symbols: 1 \10300;
+ }
+</style>
+<ol style="list-style-type: a">
+ <li value="1000"><!-- too long -->
+</ol>
+<ol style="list-style-type: b">
+ <li value="100"><!-- too long -->
+</ol>
+<ol style="list-style-type: c">
+ <li value="1000"><!-- too long -->
+</ol>
+<ol style="list-style-type: d">
+ <li value="100"><!-- too long -->
+</ol>