- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 May 2025 16:22:51 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[cssom][css-grid] Do shorthands serialize with the resolved value of their longhands?`, and agreed to the following: * `RESOLVED: Shorthands serialize using the resolved value of the individual longhands` <details><summary>The full IRC log of that discussion</summary> <emilio> oriol: Some longhands have special getComputedStyle behavior, so you get the resolved rather than computed value<br> <emilio> ... it's not clear what happens when you're serializing a shorthand that involves these<br> <emilio> ... in the issue I have various examples<br> <emilio> ... e.g. margin: auto and you serialize margin-top you might get zero, but if you try to serialize the margin longhand itself you get auto in firefox but 0 in blink/webkit<br> <emilio> ... it's particularly weird in grid properties<br> <emilio> ... because the implicit tracks and repeat() expansion<br> <emilio> q+<br> <emilio> ... we have cases where all browsers are different<br> <astearns> ack fantasai<br> <emilio> ... I think I prefer what webkit does<br> <emilio> ... which is you serialize the shorthand as if the computed value of each longhand was set to each special resolved value<br> <fantasai> scribe+<br> <emilio> ... I think that's the most consistent<br> <fantasai> emilio: I agree.<br> <fantasai> emilio: FWIW, I consider the Firefox behavior to be a bug. Haven't gotten around to fixing, because the getters are in C++ and ...<br> <fantasai> emilio: What WebKit is doing, resolving each individual longhand, and then serializing shorthand with that is the right thing to do.<br> <fantasai> emilio: This is what Firefox does for all things that don't involve layout<br> <emilio> astearns: web compat concerns or other opinions?<br> <emilio> oriol: If webkit isn't having compat issues this is probably fine?<br> <TabAtkins> +1, I *suspect* this is reasonably safe<br> <TabAtkins> and we can always add exceptions as necessary<br> <fantasai> +1 TabAtkins<br> <emilio> PROPOSED: Shorthands serialize using the resolved value of the individual longhands<br> <emilio> RESOLVED: Shorthands serialize using the resolved value of the individual longhands<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11382#issuecomment-2880835201 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 May 2025 16:22:52 UTC