Bug 1496833 - Add a reftest that depends on ancestor intrinsics being cleared on bsize changes. r=dholbert
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 09 Oct 2018 17:52:55 +0000
changeset 496034 f3480613106993d658f9b5a46f41e59ca9934a5e
parent 496033 3ffc1284220742b9c09c2b8d62c345114c8bd583
child 496035 476c7c57b03c953a7c109c829172c22e6d1411cf
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1496833
milestone64.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 1496833 - Add a reftest that depends on ancestor intrinsics being cleared on bsize changes. r=dholbert Differential Revision: https://phabricator.services.mozilla.com/D7921
testing/web-platform/tests/css/css-flexbox/dynamic-bsize-change-ref.html
testing/web-platform/tests/css/css-flexbox/dynamic-bsize-change.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/dynamic-bsize-change-ref.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<title>CSS Test Reference</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<style>
+  div {
+    border: 1px solid;
+  }
+  #myHeightChanges {
+    width: 100px;
+    height: 200px;
+    background: green;
+  }
+</style>
+<div style="display:flex; flex-direction:column">
+  <div style="height:auto">
+    <div id="myHeightChanges"></div>
+  </div>
+</div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/dynamic-bsize-change.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<title>CSS Test: Dynamic change to the block size inside an auto-sized flex item</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-flexbox">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1496833">
+<link rel="match" href="dynamic-bsize-change-ref.html">
+<style>
+  div {
+    border: 1px solid;
+  }
+  #myHeightChanges {
+    width: 100px;
+    height: 100px;
+    background: green;
+  }
+</style>
+<div style="display:flex; flex-direction:column">
+  <div style="height:auto">
+    <div id="myHeightChanges"></div>
+  </div>
+</div>
+<script>
+onload = function() {
+  window.unused = myHeightChanges.offsetTop;
+  myHeightChanges.style.height = "200px";
+}
+</script>