Open
Bug 1594888
Opened 6 years ago
Updated 1 year ago
text-decoration:line-through should recompute the line position for descendant elements with different font-size
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Core
Layout: Text and Fonts
Tracking
()
NEW
People
(Reporter: jfkthame, Unassigned)
References
(Blocks 1 open bug)
Details
Testcase:
data:text/html,<span style="font:99px sans-serif;text-decoration:line-through">foo<span style="font-size:20px">bar
See https://drafts.csswg.org/css-text-decor-4/#line-position. For line-through (unlike under- and overlines), the position should be recomputed for descendant elements with a different font-size, so in the testcase the small text "bar" should have a strikeout much lower than that of the large "foo".
Reporter | ||
Updated•6 years ago
|
Blocks: css-text-decor-4
Updated•3 years ago
|
Severity: normal → S3
When the line-through
and font-size
are set in different elements, the nesting order renders different results.
If the font-size
element is parent, it works as expected:
data:text/html,<span style="font-size:50pt"><s>test</s></span>
If the line-through
is parent, the through line renders too low:
data:text/html,<s><span style="font-size:50pt">test</span></s>
You need to log in
before you can comment on or make changes to this bug.
Description
•