]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Reboot: Update <fieldset> comment to clarify that the default weirdness is part of...
authorChris Rebert <github@chrisrebert.com>
Fri, 2 Dec 2016 17:57:22 +0000 (09:57 -0800)
committerMark Otto <markd.otto@gmail.com>
Fri, 2 Dec 2016 17:57:22 +0000 (09:57 -0800)
Refs https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
[skip sauce]

scss/_reboot.scss

index 2fc6409d08c1dd7b08ef0a766d68b57c7ca01eab..e90d7cd3b30860603e1fd5c7dfa2dd32e4a49568 100644 (file)
@@ -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. `<div>`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;