summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/383488-1.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/bugs/383488-1.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/bugs/383488-1.html')
-rw-r--r--layout/reftests/bugs/383488-1.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/layout/reftests/bugs/383488-1.html b/layout/reftests/bugs/383488-1.html
new file mode 100644
index 0000000000..cd5df2b4b8
--- /dev/null
+++ b/layout/reftests/bugs/383488-1.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html><head>
+<style>
+ span { font-family: sans-serif }
+ #a14 { font-size:72px; }
+</style>
+<script>
+window.onload = function()
+{
+ function S(id) {
+ return document.getElementById(id).style;
+ }
+ S("a1").setProperty("font-size", "illegal", "important");
+ S("a2").setProperty("font-size", "24px;", "important");
+ S("a3").setProperty("font-size", "24px; font-size-adjust:2", "important");
+ S("a4").setProperty("font-size", ";", "important");
+ S("a5").setProperty("font", "24px sans-serif;", "important");
+ S("a6").setProperty("font", "24px;", "important");
+ S("a7").setProperty("font-size", " 72px ", "important"); // correct
+ S("a8").setProperty("font", ";", "important");
+ S("a9").setProperty("font", " 72px sans-serif ", "important"); // correct
+ S("a10").setProperty("font-size", "!", "important");
+ S("a11").setProperty("font-size", "!important", "important");
+ S("a12").setProperty("font-size", "}", "important");
+ S("a13").setProperty("font-size", "; font-size:24px", "important");
+ S("a14").setProperty("font-size", "", "important"); // correct
+ S("a15").setProperty("font-size", "24px !important;", "important");
+ S("a16").setProperty("font-size", "24px !important; height:1px", "important");
+}
+</script>
+</head><body>
+<p>The X'es below should have the same size:</p>
+<!-- The wonky placement of line breaks below is to eliminate all
+ significant whitespace within the paragraph. -->
+<p
+><span id="a1" style="font-size:72px!important;">X</span
+><span id="a2" style="font-size:72px!important;">X</span
+><span id="a3" style="font-size:72px!important;">X</span
+><span id="a4" style="font-size:72px!important;">X</span
+><span id="a5" style="font-size:72px!important;">X</span
+><span id="a6" style="font-size:72px!important;">X</span
+><span id="a7" style="font-size:24px!important;">X</span
+><span id="a8" style="font-size:72px!important;">X</span
+><span id="a9" style="font:24px sans-serif!important;">X</span
+><span id="a10" style="font-size:72px!important;">X</span
+><span id="a11" style="font-size:72px!important;">X</span
+><span id="a12" style="font-size:72px!important;">X</span
+><span id="a13" style="font-size:72px!important;">X</span
+><span id="a14" style="font-size:24px!important;">X</span
+><span id="a15" style="font-size:72px!important;">X</span
+><span id="a16" style="font-size:72px!important;">X</span
+></p>
+</body></html>