There have been some recent changes to the CSS spec for the
text-decoration-thickness, text-underline-offset, and
text-underline-position: support for percentage values (based on the
font-size) is added to the -thickness and -offset properties, as an
alternative to using absolute lengths; and the from-font value is moved
from text-underline-offset to -position.
Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1607534
https://bugzilla.mozilla.org/show_bug.cgi?id=1607308
Standard:
https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property
https://drafts.csswg.org/css-text-decor-4/#text-underline-position-property
https://drafts.csswg.org/css-text-decor-4/#underline-offset
Testing: web-platform/tests/css/css-text-decor/
Cross-browser support:
Safari partially supports these properties (it does not yet support
percentages or the from-font value), while Chrome supports -position
(without from-font) but not -offset or -thickness. Apple people have
been involved in the recent spec changes, so I think we can expect to
see Safari, at least, update its implementation to align with the new
spec fairly soon.
Platform coverage: All
Restricted to secure contexts:
No; this is an adjustment to existing CSS properties that are available
everywhere.
Target Release: 74
Preferences behind which this will be implemented:
None. (But note that the CSS properties involved are each gated on
individual prefs from their original implementations:
layout.css.text-decoration-thickness.enabled
layout.css.text-underline-offset.enabled
layout.css.text-underline-position.enabled
These are enabled by default already.)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform