Commit f1b73203 authored by Chris Rebert's avatar Chris Rebert Committed by Mark Otto
Browse files

Reboot: Update <fieldset> comment to clarify that the default weirdness is...

Reboot: Update <fieldset> 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]
parent 297c47c3
11 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!26437merge,!22391V4 dev,!22547Finished a new translation for bootstrap,!22143Fix selectable disabled toggle radio buttons,!22598test,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!17021v4
Showing with 5 additions and 3 deletions
+5 -3
...@@ -347,9 +347,11 @@ textarea { ...@@ -347,9 +347,11 @@ textarea {
} }
fieldset { fieldset {
// Chrome and Firefox set a `min-width: min-content;` on fieldsets, // Browsers set a default `min-width: min-content;` on fieldsets,
// so we reset that to ensure it behaves more like a standard block element. // unlike e.g. `<div>`s, which have `min-width: 0;` by default.
// See https://github.com/twbs/bootstrap/issues/12359. // 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; min-width: 0;
// Reset the default outline behavior of fieldsets so they don't affect page layout. // Reset the default outline behavior of fieldsets so they don't affect page layout.
padding: 0; padding: 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment