- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Tue, 18 Oct 2022 21:20:52 +0000
- To: public-css-archive@w3.org
So I'm generally happy with using @tabatkins [proposal](https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1270665794) for token-based disambiguation (with a prefererence for some of the uses over others that I'll note in the summary table), but I'd like to suggest a small modification to it: Basically, where the proposal currently says "anything except an ident", I'd like it instead to say "anything except an ident or a function". (It's *possible* that's what was intended in the first place.) I think this is preferable because: 1. Most authors of CSS probably don't understand the subtle tokenization distinction between ident and function, and I think we should avoid exposing it if we don't need to. 2. It preserves some expansion space for properties in the future. For example, if we wanted a property syntax like `min(width): 200px`, we'd still be able to do that. (I don't think we actually want that... but we might want something syntactically like it.) 3. I don't think adding functions to the "property" space hurts the disambiguation of selectors (although maybe I'm forgetting something). (Functional pseudo-classes begin with the `:` symbol and are not purely function tokens, just like `:hover` is not purely an ident.) -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1283019419 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 18 October 2022 21:20:54 UTC