Bug 1483211 - Make fieldset UA rule use min-inline-size instead of min-width. r=dholbert
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 16 Aug 2018 14:59:19 +0000
changeset 487191 c56ddef04468e4b7fd99ae6452bbca093420a76e
parent 487190 9c2e8bafeb0656aacfdb5c41f7c9bf69ef5431c1
child 487192 db2433c663576c4820fec50b8e5f2dc81dd9443c
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1483211
milestone63.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 1483211 - Make fieldset UA rule use min-inline-size instead of min-width. r=dholbert Per https://github.com/whatwg/html/pull/3914 Differential Revision: https://phabricator.services.mozilla.com/D3486
layout/reftests/forms/fieldset/fieldset-min-inline-size-1-ref.html
layout/reftests/forms/fieldset/fieldset-min-inline-size-1.html
layout/reftests/forms/fieldset/reftest.list
layout/style/res/forms.css
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-min-inline-size-1-ref.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<fieldset style="writing-mode: vertical-lr; inline-size: -moz-fit-content">
+  Longwordgoeshere
+</fieldset>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/forms/fieldset/fieldset-min-inline-size-1.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<fieldset style="writing-mode: vertical-lr; inline-size: 0">
+  Longwordgoeshere
+</fieldset>
--- a/layout/reftests/forms/fieldset/reftest.list
+++ b/layout/reftests/forms/fieldset/reftest.list
@@ -15,14 +15,15 @@ fuzzy-if(skiaContent,0-1,0-40768) == abs
 == 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
 == fieldset-min-width-1a.html fieldset-min-width-1-ref.html
 == fieldset-min-width-1b.html fieldset-min-width-1-ref.html
 == fieldset-min-width-2a.html fieldset-min-width-2-ref.html
 == fieldset-min-width-2b.html fieldset-min-width-2-ref.html
+== fieldset-min-inline-size-1.html fieldset-min-inline-size-1-ref.html
 == legend-overlapping-right-border-1.html legend-overlapping-right-border-1-ref.html
 == fieldset-border-image-1a.html fieldset-border-image-1-ref.html
 == fieldset-border-image-1b.html fieldset-border-image-1-ref.html
 == fieldset-border-image-2a.html fieldset-border-image-2-ref.html
 == fieldset-border-image-2b.html fieldset-border-image-2-ref.html
 == dynamic-text-indent.html dynamic-text-indent-ref.html
--- a/layout/style/res/forms.css
+++ b/layout/style/res/forms.css
@@ -69,17 +69,17 @@ fieldset {
   display: block;
   margin-inline-start: 2px;
   margin-inline-end: 2px;
   padding-block-start: 0.35em;
   padding-block-end: 0.625em;
   padding-inline-start: 0.75em;
   padding-inline-end: 0.75em;
   border: 2px groove ThreeDLightShadow;
-  min-width: -moz-min-content;
+  min-inline-size: -moz-min-content;
 }
 
 label {
   cursor: default;
 }
 
 /* default inputs, text inputs, and selects */