W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

Re: [csswg-drafts] [css-text-decor] A new property for text decorations to skip ink

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Tue, 21 Feb 2017 07:16:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-281263607-1487661382-sysbot+gh@w3.org>
> Let's say an English user installed an extension that sets `:root { 
text-decoration-skip-spaces: yes;}`

That's the default value, so you would not need an extension or a user
 stylesheet for that. 

> This will be reset if a page wants to change edges or ink and used 
the shorthand.
If a page wants to change a single other feature, it cannot use the 
shorthand, since the shorhand doesn't do that.

Other than that, yes, user-style sheets get overridden when authors 
reset various things, but that's a general problem with CSS, not even 
a matter of shorthand or longhand. And if the user really cares, they 
can use `!important` in their stylesheet.

As for why I think the shorthand will be useful: Since you may want 
the different kind of behaviors based on relatively unrelated things, 
you'll have unrelated selectors setting different kinds of skipping on
 or off in different parts of the page, as well as propagating via 
inheritance. In most cases, you should be just fine with that, but 
occasionally, you'll want to isolate yourself from that, and start 
with a blank state. For instance, say you have an article element 
inside of some UI structure. You may not want the skipping rules from 
the UI, whatever they are, to inherit into the article, so you apply 
an `text-decoration-skip: auto` reset on the article.

GitHub Notification of comment by frivoal
Please view or discuss this issue at 
using your GitHub account
Received on Tuesday, 21 February 2017 07:16:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:08 UTC