summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/383488-1.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 /layout/reftests/bugs/383488-1.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 '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>