Bug 1188061 - (Testcases from dbaron) Reftests for nsChangeHint_* flags that relate to resizing in one dimension only. r=dbaron
authorJonathan Kew <jkew@mozilla.com>
Wed, 09 Sep 2015 12:21:55 +0100
changeset 294160 2739625b99bf100ec26ab52f373ebf7fd156f78f
parent 294159 a6a759b2431a1af78df2bc8145e0c2c07791b22a
child 294161 3ef7c7277bd66903738a7011f78bfe16bb040739
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1188061
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1188061 - (Testcases from dbaron) Reftests for nsChangeHint_* flags that relate to resizing in one dimension only. r=dbaron
layout/reftests/writing-mode/1188061-1-nsChangeHint_ClearAncestorIntrinsics-ref.html
layout/reftests/writing-mode/1188061-1-nsChangeHint_ClearAncestorIntrinsics.html
layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize-ref.html
layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize.html
layout/reftests/writing-mode/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1188061-1-nsChangeHint_ClearAncestorIntrinsics-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<style>
+
+html { writing-mode: vertical-rl; }
+
+</style>
+<body>
+
+<p>The following blue box should have uniform padding around all sides.</p>
+
+<div style="float: left; background: olive; padding: 5px;">
+  <div id="c" style="background: blue; height: 100px; width: 100px">
+  </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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1188061-1-nsChangeHint_ClearAncestorIntrinsics.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<style>
+
+html { writing-mode: vertical-rl; }
+
+</style>
+<body>
+
+<p>The following blue box should have uniform padding around all sides.</p>
+
+<div style="float: left; background: olive; padding: 5px;">
+  <div id="c" style="background: blue; height: 200px; width: 100px">
+  </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>
+
+var div = document.getElementById("c")
+var flush_and_ignore = div.offsetTop;
+div.style.height = "100px";
+
+</script>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1188061-2-nsChangeHint_UpdateComputedBSize-ref.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML>
+<html>
+<style>
+
+html { writing-mode: vertical-rl; }
+
+</style>
+<body>
+
+<p>The following image should have uniform padding around all sides.</p>
+
+
+<div style="width: 150px; 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>
new file mode 100644
--- /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>
--- a/layout/reftests/writing-mode/reftest.list
+++ b/layout/reftests/writing-mode/reftest.list
@@ -145,15 +145,17 @@ test-pref(dom.meta-viewport.enabled,true
 == 1172774-percent-margin-3.html 1172774-percent-vertical-ref.html
 == 1172774-percent-margin-4.html 1172774-percent-vertical-ref.html
 == 1172774-percent-padding-1.html 1172774-percent-horizontal-ref.html
 == 1172774-percent-padding-2.html 1172774-percent-horizontal-ref.html
 == 1172774-percent-padding-3.html 1172774-percent-vertical-ref.html
 == 1172774-percent-padding-4.html 1172774-percent-vertical-ref.html
 == 1174450-intrinsic-sizing.html 1174450-intrinsic-sizing-ref.html
 == 1175789-underline-overline-1.html 1175789-underline-overline-1-ref.html
+fails == 1188061-1-nsChangeHint_ClearAncestorIntrinsics.html 1188061-1-nsChangeHint_ClearAncestorIntrinsics-ref.html
+fails == 1188061-2-nsChangeHint_UpdateComputedBSize.html 1188061-2-nsChangeHint_UpdateComputedBSize-ref.html
 == 1196887-1-computed-display-inline-block.html 1196887-1-computed-display-inline-block-ref.html
 
 # Suite of tests from GĂ©rard Talbot in bug 1079151
 include abspos/reftest.list
 
 # Tests for tables with vertical writing modes
 include tables/reftest.list