- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Mon, 01 Aug 2022 17:58:35 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `using decoration-skipping to turn off underlines`, and agreed to the following: * `RESOLVED: Add text-decoration-skip-self as a longhand of text-decoration-skip, for skipping ancestor decorations.` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> Topic: using decoration-skipping to turn off underlines<br> <TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/2885<br> <TabAtkins> fantasai: We've had a variety of suggestions for how to turn off ancestor underlines on an element<br> <TabAtkins> fantasai: We had a suggestion of using text-decoration-skip; it didn't work since it was inheriting<br> <TabAtkins> fantasai: that doesn't work<br> <TabAtkins> fantasai: My suggestion is to add text-decoration-skip-self: auto | skip | no-skip<br> <TabAtkins> fantasai: could add no-skip later if needed<br> <TabAtkins> fantasai: non-inherited property<br> <TabAtkins> fantasai: auto skips if it's atomic inline<br> <TabAtkins> fantasai: skip skips the element regardless<br> <TabAtkins> fantasai: no-skip avoids skipping even if it's atomic inline; draw it over/under as if it's a character<br> <TabAtkins> fantasai: useful when images are used as text, like in CJK for rare characters<br> <TabAtkins> fantasai: not ideal but it happens<br> <TabAtkins> fantasai: skip would apply to inlines; all ancestor decorations would skip, but its own text decorations would apply<br> <emilio> q+<br> <TabAtkins> astearns: This is in addition to the skipping we already have?<br> <TabAtkins> fantasai: this replaces the existing text-decoration-skip:self<br> <TabAtkins> fantasai: independent from ink skipping<br> <TabAtkins> emilio: Is the auto beahvior how browsers behave today?<br> <TabAtkins> fantasai: yes<br> <TabAtkins> emilio: sounds reasonable<br> <astearns> ack emilio<br> <TabAtkins> astearns: how does it interact with text-decoration-skip?<br> <TabAtkins> astearns: assume not a shorthand relationship<br> <TabAtkins> fantasai: We've discussed having a shorthand for both inherited and non<br> <TabAtkins> fantasai: several places in TExt where it might be useful<br> <TabAtkins> fantasai: but haven't pulled the trigger yet<br> <TabAtkins> fantasai: for here it's less critical, but i think it's useful for text-decoration-skip to be a shorthand<br> <TabAtkins> fantasai: there was also some white space property where we thought about mixing inherited and non<br> <TabAtkins> emilio: Don't we already ahve one mixed?<br> <TabAtkins> emilio: border-color? i guess that doesn't inherit<br> <TabAtkins> fantasai: I think we ahd a proposal for one, but we never solidified it<br> <TabAtkins> florian: there was something but we changed it to have a special value that mimics non-inheritance<br> <astearns> s/florian/fremy/<br> <TabAtkins> fantasai: my suggestion is we make text-decoration-skip a shorthand for all the skip props<br> <TabAtkins> fantasai: we might need to make the keywords more unique, then<br> <TabAtkins> jfkthame: do you want to control skipping separately for the different decorations?<br> <TabAtkins> jfkthame: Like skip underlines on sub elements, but not overlines<br> <TabAtkins> fantasai: yeah<br> <TabAtkins> +1<br> <TabAtkins> astearns: If an author wanted it, would they be able to skip everything and reset the others?<br> <TabAtkins> jfkthame: No, if you reset on the child they'll move to match the child rather than being continuous<br> <TabAtkins> emilio: the 'all' trivially does inherited and non-inherited<br> <TabAtkins> TabAtkins: lol yeah but it's a special case<br> <dbaron> At least the old Gecko style system (and maybe other engines) had optimizations (in the rule tree) that benefited from shorthands (for many common shorthands) being all-inherited or all-non-inherited.<br> <TabAtkins> fantasai: so maybe we want skip-all, skip-underline, etc<br> <TabAtkins> astearns: maybe we could add the specific values when we have use-cases? jonathan, do you know it's something we want to do right now?<br> <TabAtkins> jfkthame: No haven't been hearing much demand, just seemed like a natural request<br> <TabAtkins> fantasai: It's good to bring up, as it can affect our naming<br> <TabAtkins> astearns: maybe goes back to Myles since he brought it up, to see if it's something he wants to design<br> <dbaron> (Are there people who want text-decoration-skip-ink to apply to line-through decorations?)<br> <TabAtkins> fantasai: I think we're resolved to add a non-inherited property (a longhand of t-d-skip) that skips t-ds imposed by an ancestor<br> <TabAtkins> fantasai: open questio is whether we add keywords for the specific types of decorations<br> <TabAtkins> dbaron: wondering about separate decorations...<br> <TabAtkins> dbaron: we had people asking for skipping for strike-thrus<br> <fantasai> s/we had/have we had/<br> <TabAtkins> fantasai: currently we ink-skip on under and overlines, not linethrus, since it should look like you're striking the text<br> <fantasai> fantasai: I haven't heard sucha request<br> <fantasai> ^<br> <TabAtkins> astearns: OPinions or concerns?<br> <TabAtkins> astearns: so proposed resolution is to add the new prop as a longhand of t-d-skip<br> <TabAtkins> astearns: objections?<br> <TabAtkins> RESOLVED: Add text-decoration-skip-self as a longhand of text-decoration-skip, for skipping ancestor decorations.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2885#issuecomment-1201529088 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 1 August 2022 17:58:37 UTC