From: Chris Rebert Date: Fri, 2 Dec 2016 17:57:22 +0000 (-0800) Subject: Reboot: Update
comment to clarify that the default weirdness is part of... X-Git-Tag: v4.0.0-alpha.6~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1b732031e3bf0f49e10f0688e39982101415465;p=thirdparty%2Fbootstrap.git Reboot: Update
comment to clarify that the default weirdness is part of the standard. (#21261) Refs https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements [skip sauce] --- diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 2fc6409d08..e90d7cd3b3 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -347,9 +347,11 @@ textarea { } fieldset { - // Chrome and Firefox set a `min-width: min-content;` on fieldsets, - // so we reset that to ensure it behaves more like a standard block element. - // See https://github.com/twbs/bootstrap/issues/12359. + // Browsers set a default `min-width: min-content;` on fieldsets, + // unlike e.g. `
`s, which have `min-width: 0;` by default. + // So we reset that to ensure fieldsets behave more like a standard block element. + // See https://github.com/twbs/bootstrap/issues/12359 + // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements min-width: 0; // Reset the default outline behavior of fieldsets so they don't affect page layout. padding: 0;