Keep clearfix pseudos around simple float bands

This commit is contained in:
SGavrl
2026-07-31 04:01:14 +00:00
parent 3fe624703b
commit 8b52adf4d8
2 changed files with 2 additions and 2 deletions

View File

@@ -7951,8 +7951,6 @@ fn build_children_with_float_zone(
parent.height,
crate::Dimension::Px(_) | crate::Dimension::Percent(_)
) && parent.size_expressions[1].is_none()
&& !has_in_flow_generated_pseudo(parent.before_pseudo.as_deref())
&& !has_in_flow_generated_pseudo(parent.after_pseudo.as_deref())
});
if parent_has_definite_height {
let fills_axis = |value: f32| (value - 1.0).abs() < 0.001;

View File

@@ -892,6 +892,8 @@ fn full_width_percentage_float_uses_definite_containing_block() {
<style>
html, body { margin: 0; width: 100%; height: 100% }
#host { width: 100%; height: 100% }
#host::before, #host::after { content: " "; display: table }
#host::after { clear: both }
#float {
float: left;
display: flex;