Re: [csswg-drafts] [css-text-decor] Limits on text-underline-offset to preserve semantic meaning (#4059)

> I am assuming this would be based only on the current linebox height 

The line can move in some cases to accommodate descendant content, so we do want to use the line box height as part of the equation. Somewhat more precisely, I would define the limits as something like "from the middle of the line box the upper/lower limit is at max(line box height, font height)/2 + slack", where slack is whatever we'd like to decide, and at *minimum* should be (line-height - font-size)/2 to represent the other half of the line gap.

I do want to note that the offset position is measured from the top of the underline, however thick it is: zero places the entirety of the underline below the alphabetic baseline (assuming `text-underline-position: auto`). If we add controls for strike-through and overline offsets, they'd be measured from the middle and bottom of the line thicknesses, respectively.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4059#issuecomment-513023057 using your GitHub account

Received on Thursday, 18 July 2019 22:54:53 UTC