New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add text-decoration-skip default value to UA stylesheet #3102
Conversation
Following the discussions in [1] we propose to add the value "objects ink" to the body, html elements for the text-decoration-skip property. I interpret the thread to have reached consensus on the aspect of making ink skipping a default behavior by means of a UA stylesheet. We believe it brings better typography to the web. [1] w3c/csswg-drafts#727 (comment)
CC @litherum |
In the "Intent to Ship" thread @zcorpan asked why this wasn't applied to |
I am certainly happy to update the CL with |
Why should this be in the UA stylesheet and not the initial value of the property? |
Phew, that original thread sure meandered. But yeah, it seems to have settled on "ink" being part of the initial value; there's no reason to put it in the UA stylesheet. This shouldn't be merged; we should poke the CSSWG thread and have the initial value changed. (Either to |
This is a great question. I hadn't noticed before, but that's apparently how the spec does some things regarding text:
@litherum, @tabatkins, do you know what the differences are between these approaches, and why the spec would choose one versus the other? @tabatkins, you seem to be saying the CSS spec usually governs initial values. Should HTML remove the above sentence about color/background-color? |
Also, the test at https://github.com/w3c/web-platform-tests/pull/7605/files will still be correct for the initial value version, right? |
'color' and 'background-color' were made UA-defined for accessibility reasons, I believe. (That said, the current spec confusingly just says "the initial value is 'black'" in the prose; I'll raise an issue about that.) We don't do that for anything else. We only use UA-stylesheet rules when a particular value isn't good globally. That isn't the case here; if we're agreeing that ink-skipping is a good default behavior, it looks like it's good for everyone - that seems to be what the thread has settled on. |
@domenic: Yes, I believe so.
@tabatkins: Thanks, I am attempting to revive the discussion in w3c/csswg-drafts#727 (comment) - perhaps you could comment there, thank you. |
It looks like this was superceded by w3c/csswg-drafts@70e40c9 . However, please merge web-platform-tests/wpt#7605 still! |
Following the discussions in [1] we propose to add the value "objects
ink" to the body, html elements for the text-decoration-skip property. I
interpret the thread to have reached consensus on the aspect of making
ink skipping a default behavior by means of a UA stylesheet. We believe
it brings better typography to the web.
[1] w3c/csswg-drafts#727 (comment)
Tests: w3c/web-platform-tests#7605