- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Mar 2025 17:24:33 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-values] Distinction between `attr(foo type(<string>))` and `attr(foo string)` is too subtle``, and agreed to the following: * `RESOLVED: Rename string keyword to raw-string` <details><summary>The full IRC log of that discussion</summary> <fantasai> TabAtkins: attr() has the ability to say how to parse the attribute<br> <fantasai> TabAtkins: default behavior is to take the value and use it directly as a string<br> <fantasai> TabAtkins: we also have the ability to parse it as CSS value<br> <fantasai> TabAtkins: In particular, can parse it as a string. This is weird, because you would need to include the quotes.<br> <fantasai> TabAtkins: But it would also be weird to exclude that, so we're allowing it.<br> <fantasai> TabAtkins: But it's confusing because to get the first behavior you write 'string' and for the second behavior you write 'type(<string>)'<br> <fantasai> TabAtkins: These are super close to each other, and probably confusing for authors.<br> <fantasai> TabAtkins: Some discussion about other keywords.<br> <fantasai> TabAtkins: unparsed-string, raw-string ...<br> <bkardell_> sgtm<br> <fantasai> TabAtkins: Unless anyone has other ideas, propose to rename to raw-string<br> <fantasai> TabAtkins: this is one of the keywords that do special behaviors<br> <TabAtkins> attr(href raw-string)<br> <fantasai> fantasai: this is equivalent to attr(href)<br> <fantasai> astearns: If it's equivalent to syntax without keyword, can we just remove the keyword?<br> <fantasai> TabAtkins: We can't. For one thing, I prefer having explicit keywords. But more importantly, legacy behavior requires us to fall back to an empty string if the attribute is missing<br> <fantasai> TabAtkins: whereas the new behavior is falling back to Invalid At Computed Time behavior.<br> <fantasai> TabAtkins: It would be weird if you couldn't do that for the most common case<br> <fantasai> TabAtkins: so omitting falls back to empty string, including keyword falls back to IACT<br> <kbabbitt> fantasai: that is a subtle difference that is not going to be obvious at all<br> <kbabbitt> fantasai: if that's actually a behavioral difference I think it would be good to make it clearer<br> <kbabbitt> TabAtkins: don't know how to bake IACVT into a keyword<br> <kbabbitt> fantasai: me either<br> <kbabbitt> TabAtkins: right now if you specify a type at all you get IACVT as a fallback<br> <kbabbitt> TabAtkins: not tied to string vs ??, a little more for people to learn<br> <kbabbitt> TabAtkins: agree it's not great but need to work around legacy behavior<br> <fantasai> fantasai: Something for us to think about, if we can make it clearer.<br> <fantasai> astearns: So for now, proposal is to rename to raw-string<br> <fantasai> TabAtkins: Should do asap, since we're shipping already.<br> <bkardell_> +Q<br> <bkardell_> q-<br> <bkardell_> 1+<br> <fantasai> astearns: any objections to changing string to raw-string?<br> <fantasai> RESOLVED: Rename string keyword to raw-string<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11645#issuecomment-2701601350 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 March 2025 17:24:33 UTC