- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 20 Oct 2020 21:53:40 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `computed value of shortcuts`, and agreed to the following: * `RESOLVED: contain keywords representing a combination of other keywords are defined to compute to those keywords so that they serialize under shortest-serialization princple` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: computed value of shortcuts<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/5511<br> <fantasai> TabAtkins: not clear how serialization should work in certain cases<br> <fantasai> TabAtkins: the 'content' value is equivalent to 'layout paint'<br> <fantasai> TabAtkins: should it serialize as 'content' or 'layout paint'?<br> <fantasai> TabAtkins: some differences between browsers<br> <fantasai> TabAtkins: if we specify shortest serialization principle to use shorthand when possible<br> <fantasai> TabAtkins: that assumes we'll always have a strict hierarchy of shorthand variables<br> <fantasai> TabAtkins: if partial overlap, might have multiple shortest-possible serializations<br> <fantasai> TabAtkins: I think we can spec our way out of that if needed<br> <fantasai> TabAtkins: Right now, means that the exact value is used<br> <fantasai> TabAtkins: essentially make ..<br> <fantasai> TabAtkins: and then go through and use shortest serialization<br> <fantasai> TabAtkins: so I propose that we serialize the 'contain' property using shortest serialization<br> <fantasai> TabAtkins: and use shorter values rather than how written<br> <heycam> fantasai: worth distinguishing between specified and computed values<br> <fantasai> fantasai: if talking about computed values, then just say that 'content' computes to 'layout paint' and it'll serialize appropriately per rules<br> <fantasai> fantasai: if talking about specified values, need to be explicit<br> <fantasai> oriol: Generally, specified values keep keyword as specified, just normalize the order<br> <fantasai> florian: Doesn't that fall out?<br> <emilio> q+<br> <fantasai> TabAtkins: Then it sorts in a particular order<br> <astearns> ack fantasai<br> <heycam> fantasai: canonical ordering in our propdef tables<br> <heycam> fantasai: it'll look at how you've defined the grammar, and serialize based on that order<br> <fantasai> fantasai: unless you define differently<br> <fantasai> TabAtkins: I think we need more detail in CSSOM to be clear<br> <fantasai> TabAtkins: about computed value, sounds like we can just resolve on doing the normal thing and then write tests<br> <fantasai> florian: don't we need to say that the "compute to" each other?<br> <fantasai> florian: otherwise they're similar but different values<br> <astearns> ack emilio<br> <fantasai> emilio: behavior in Firefox is because we only partially implement some of contain<br> <fantasai> emilio: but generally, we should serialize the same, the computed and specified values<br> <fantasai> emilio: I don't see why they should be different. Most properties behave like that if there's no conversion<br> <fantasai> TabAtkins: I would prefer avoiding specified value conversion here<br> <fantasai> TabAtkins: so let's leave that off to the side, leave it for computed value serialization<br> <fantasai> TabAtkins: so I'm find to say that shorthand values compute to appropriate longhands and that falls out<br> <fantasai> astearns: So proposed resolution is that values are ...?<br> <fantasai> fantasai: You say the shorthand computes to the longhand, and it'll serialize as the short one<br> <fantasai> RESOLVED: contain keywords representing a combination of other keywords are defined to compute to those keywords so that they serialize under shortest-serialization princple<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5511#issuecomment-713161854 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 20 October 2020 21:53:42 UTC