Keep clearfix pseudos around simple float bands
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user