summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.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/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.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/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html')
-rw-r--r--layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html b/layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html
new file mode 100644
index 0000000000..22c32aefda
--- /dev/null
+++ b/layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<style>
+
+html { writing-mode: vertical-rl; }
+
+</style>
+<body onload="run()">
+
+<p>The following image should have uniform padding around all sides.</p>
+
+
+<div style="width: 200px; float: left; background: yellow; padding: 5px;">
+ <div style="width: 100%">
+ <!-- 32x32 blue image -->
+ <img style="width: 100%" src="data:image/png; charset=binary;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII=">
+ </div>
+</div>
+
+<p style="clear:left">Note that if you zoom the page after it loads
+it fixes the problem by causing a reflow.</p>
+
+<script>
+
+function run() {
+ /* needs to happen after the image loads */
+ var img = document.getElementsByTagName("img")[0];
+ var flush_and_ignore = img.offsetTop;
+ img.parentNode.parentNode.style.width = "150px";
+
+ document.documentElement.removeAttribute("class");
+}
+
+</script>