Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to Prototype: text-decoration-skip-ink

72 views
Skip to first unread message

Charlie Marlow

unread,
Aug 6, 2019, 6:14:38 PM8/6/19
to dev-pl...@lists.mozilla.org
Summary: text-decoration-skip-ink is a CSS feature that makes underlines and overlines skip around the text, instead of painting behind it. There is a picture of this effect on the standards link.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1411922 <https://bugzilla.mozilla.org/show_bug.cgi?id=1411922>

Standard: https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property <https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property>

Platform coverage: This will be available on all platforms using Gecko.

Preference: It will be preffed off by default under layout.css.text-decoration-skip-ink.enabled

DevTools bug: This is a minor, cosmetic visual feature with no clear opportunity for DevTools integration.

Other browsers: It works in both Chrome and Safari.

Web-platform-tests: Initial reftests will be landed with the first patch, they are here: https://phabricator.services.mozilla.com/D40707 <https://phabricator.services.mozilla.com/D40707>

Secure contexts: No, it is not restricted to secure contexts in other browsers, so for compatibility we don’t restrict it either.


Charlie Marlow

Tom Schuster

unread,
Aug 7, 2019, 3:18:16 PM8/7/19
to Charlie Marlow, dev-platform
Very cool, I have been looking forward to this. I hope we can enable
this for links by default at some point, like Chrome.
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform

Daniel Holbert

unread,
Aug 7, 2019, 4:48:08 PM8/7/19
to
On Wednesday, August 7, 2019 at 12:18:16 PM UTC-7, Tom Schuster wrote:
> Very cool, I have been looking forward to this. I hope we can enable
> this for links by default at some point, like Chrome.

That's the plan!

The new property here, "text-decoration-skip-ink", has the unusual distinction of being a CSS feature where the property's *default value* ("auto") is the value that triggers the new behavior.

So once we pref on support for the property, then the default behavior for all text-decorations will change -- though sites can request the old behavior by specifying "text-decoration-skip-ink: none" (which turns on the "legacy"/current behavior).
0 new messages