Bug 1230207 - A couple of simple reftests for grid/flexbox layout on a <fieldset>.
authorMats Palmgren <mats@mozilla.com>
Tue, 15 Dec 2015 02:51:03 +0100
changeset 276382 3c155345384e5c200004ede5a7530e0b074b108c
parent 276381 76a5cbbc0600f02ba35ad0877dcdfe6886b9d152
child 276383 d9526d5d49b460cec30769ef5daf67b5c382d19d
push id69153
push usermpalmgren@mozilla.com
push dateTue, 15 Dec 2015 01:51:16 +0000
treeherdermozilla-inbound@81df08547187 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1230207
milestone45.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 1230207 - A couple of simple reftests for grid/flexbox layout on a <fieldset>.
layout/reftests/forms/fieldset/fieldset-flexbox-001-ref.html
layout/reftests/forms/fieldset/fieldset-flexbox-001.html
layout/reftests/forms/fieldset/fieldset-grid-001-ref.html
layout/reftests/forms/fieldset/fieldset-grid-001.html
layout/reftests/forms/fieldset/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-flexbox-001-ref.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+<style>
+p { flex-grow: 1; }
+</style>
+<fieldset style="overflow:hidden; width:200px; height:200px;">
+  <legend>Legend</legend>
+<div style="display:flex;">
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</div>
+</fieldset>
+<fieldset>
+  <legend>Legend</legend>
+<div style="display:flex;">
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</div>
+</fieldset>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-flexbox-001.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+<style>
+p { flex-grow: 1; }
+</style>
+<fieldset style="display:flex; overflow:hidden; width:200px; height:200px;">
+  <legend>Legend</legend>
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</fieldset>
+<fieldset style="display:flex;">
+  <legend>Legend</legend>
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</fieldset>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-grid-001-ref.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+<fieldset style="overflow:hidden; width:200px; height:200px;">
+  <legend>Legend</legend>
+<div style="display:grid; grid-template-columns: repeat(4,50px); grid-auto-rows: 20px;">
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</div>
+</fieldset>
+<fieldset>
+  <legend>Legend</legend>
+<div style="display:grid; grid-auto-columns: 50px; grid-auto-rows: 20px;">
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</div>
+</fieldset>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-grid-001.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+<fieldset style="display:grid; overflow:hidden; grid-template-columns: repeat(4,50px); grid-auto-rows: 20px; width:200px; height:200px;">
+  <legend>Legend</legend>
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</fieldset>
+<fieldset style="display:grid; grid-auto-columns: 50px; grid-auto-rows: 20px;">
+  <legend>Legend</legend>
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+  <p>X
+</fieldset>
+</body>
+</html>
--- a/layout/reftests/forms/fieldset/reftest.list
+++ b/layout/reftests/forms/fieldset/reftest.list
@@ -7,8 +7,10 @@
 random-if(B2G||Mulet) == fieldset-overflow-auto-1.html fieldset-overflow-auto-1-ref.html # Initial mulet triage: parity with B2G/B2G Desktop
 fuzzy-if(winWidget&&!layersGPUAccelerated,102,221) == positioned-container-1.html positioned-container-1-ref.html
 == relpos-legend-1.html relpos-legend-1-ref.html
 == relpos-legend-2.html relpos-legend-2-ref.html
 test-pref(layout.css.sticky.enabled,true) skip-if((B2G&&browserIsRemote)||Mulet) == sticky-legend-1.html sticky-legend-1-ref.html # Initial mulet triage: parity with B2G/B2G Desktop
 == abs-pos-child-sizing.html abs-pos-child-sizing-ref.html
 == overflow-hidden.html overflow-hidden-ref.html
 == legend-rtl.html legend-rtl-ref.html
+== fieldset-grid-001.html fieldset-grid-001-ref.html
+== fieldset-flexbox-001.html fieldset-flexbox-001-ref.html