mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 13:43:11 +02:00
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]
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user