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
LibWeb: Paint text decorations from each decorating box
Previously, decoration lines reached descendants by treating
`text-decoration-line` as an inherited property. Descendants painted
the lines with their own color, style, thickness, underline offset, and
underline position rather than the values specified on the decorating
box, and derived the line geometry from their own font, so one
decoration changed appearance wherever its text changed font size or
was shifted by `vertical-align`.
Now each text fragment walks its ancestor chain and paints the
decorations of every decorating box that applies to it, using that
box's computed values and font. Lines are anchored at the decorating
box's own baseline, so vertical alignment moves a box's decorations
together with it but never with its descendants. Decorations that
propagate into a block container derive their geometry from that
block.
0 commit comments