W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [scroll-animations-1] Add predefined `@scroll-timeline` to spec (#6472)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 Aug 2021 17:03:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-902831765-1629479025-sysbot+gh@w3.org>
Yeah, there's several examples. 

* CSS-wide keywords. We try not to expand this set much, and when we do keep them as generic words that are very unlikely to show up in other contexts so we can ban them from being used anywhere else without issue.
* Color spaces for `color()`. Here, the author-defined ones are segregated from CSS-defined by requiring them to be dashed-idents. We're *pretty sure* this list is gonna expand over time, and the most reasonable names to choose are *also* likely names for authors to choose, so keeping them clearly separate was important.
* Counters. Here we just allow the two namespaces to mingle, with author-provided ones overriding CSS-defined ones (except for a handful that we've banned from overriding, for perf or internal-consistency reasons). If I were doing this today I *might* take the `color()` approach and require dashed-idents, but the cultural concerns of minting *some* numbering systems as predefined names while others are dash-prefixed might have stayed my hand.
* Font-face names. The namespaces mingle, but predefined ones are non-overridable. We don't expand the set much, and when we have done so in the recent past we've used names that are very unlikely to collide with existing author-defined names (the `ui-*` names).
* probably a few more, i dunno off the top of my head

So we're all over the board in behavior, and I dunno where we wanna go with this. If we think we'll be adding to the list of predefineds over time, I suspect we want either "mingle, but authors can override names" or "authors must use dashed-idents", because it looks like the names we'd choose are halfway reasonable for authors to choose too. If we think the list will be pretty static, we can possibly go with "mingle, but predefineds are illegal to override".

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/6472#issuecomment-902831765 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 20 August 2021 17:03:49 UTC

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