You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happens is that, in the IFC established by the containers, they generate the strut using the effective_vertical_align_for_inline_layout() of the container! That just happens to work if the container is block-level because we get baseline, but if fails for inline-level containers.
We should just use baseline in all cases and get rid of effective_vertical_align_for_inline_layout.
The text was updated successfully, but these errors were encountered:
Perhaps this should be checking if the container is the root of the inline formatting context instead of the display value. We don't think we want to apply something like vertical-align: top to children of the root of the inline formatting context, because they are "virtually" placed into anonymous boxes and vertical-align isn't inherited.
Yes that's right, these effective_vertical_align_for_inline_layout should be baseline at the root of the IFC, or the vertical-align when nested inside.
The 1st case is good, the 2nd is bad.
What happens is that, in the IFC established by the containers, they generate the strut using the
effective_vertical_align_for_inline_layout()
of the container! That just happens to work if the container is block-level because we getbaseline
, but if fails for inline-level containers.We should just use
baseline
in all cases and get rid ofeffective_vertical_align_for_inline_layout
.The text was updated successfully, but these errors were encountered: