-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flex container doesn't display correctly next to a legend #29712
Comments
@jeromelebleu Thanks for your report. More reduced test case: https://codepen.io/fellows3/pen/GRRVoVd |
The float is added so that a border of the fieldset (if added) wraps around the legend. |
Thanks @MartijnCuppens for the explanation. As there is no border by default and to prevent side effect, could it be a solution to remove the float and let it up to the developer to add it as needed? Just my two cents... |
I've added this to the |
Since #28917, the
legend
element is no longer rendered withdisplay: block
but it hasfloat: left
instead. There is at least an issue when displaying a grid just next tolegend
as it is rendered at the right and not under (see: https://jsfiddle.net/du95trv3/2/). I let you see what is the best way to fix that, normalize.css for example definesdisplay: table
forlegend
...The text was updated successfully, but these errors were encountered: