Wp-block-image: Breaks natural CSS flow on floating alignment properties #28820
Labels
[Block] Image
Affects the Image Block
CSS Styling
Related to editor and front end styles, CSS-specific issues.
What problem does this address?
wp-block-image has no markup as a parent to floating image such as alignleft. Top level elements should NEVER break the CSS flow.
<div><figure class="alignleft"></figure></div>
is wrong. Properties likealignleft + p { margin-top: } or alignleft ~ h2 { clear: both; }
etc etc not working.What is your proposed solution?
Add classname to top level element such as has-float or attribute data-align=left or whatever. Or better, keep figure element as top level element.
The text was updated successfully, but these errors were encountered: