- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 04 Jul 2018 07:18:18 +0000
- To: public-css-archive@w3.org
The Working Group just discussed `getComputedStyles and shorthands`, and agreed to the following: * `RESOLVED: all shorthands must show up in getComputedStyles` <details><summary>The full IRC log of that discussion</summary> <florian> topic: getComputedStyles and shorthands<br> <florian> github: https://github.com/w3c/csswg-drafts/issues/2529<br> <florian> emilio: FF and Edge only support getComputedStyle on shorthands that used to be longhands, Blink supports more<br> <florian> emilio: shorthands in the computed style object are exposed as properties<br> <florian> emilio: I want to know what people want. Fine with changing, but it's work<br> <florian> ericwilligers: if it was a longhand, it would serialize<br> <florian> TabAtkins: it needs to<br> <florian> emilio: there are bugs on the grid shorthands<br> <florian> emilio: People have argued various ways.<br> <florian> TabAtkins: this is an obvious forward compat mistake<br> <florian> TabAtkins: all properties from now on should support it<br> <florian> TabAtkins: and if we can, all the legacy shorthands should as well, when a value can be constructed if it's not a a webcompat problem<br> <florian> TabAtkins: which doesn't seem to be the case<br> <florian> dbaron: if it's not possible to represent, then we have to go for empty string<br> <florian> TabAtkins: that's fine<br> <TabAtkins> It's still forward-compatible; adding a new property to the shorthand will never make it, by *default*, stop serializing<br> <florian> emilio: there's also the question of computed values vs resolved values<br> <florian> heycam: it would be very weird if the longhands resolved but the shorthands didn't, so we should match<br> <florian> heycam: Edge is the only other browser not doing it. So Edge?<br> <florian> emilio: Edge, are you OK with doing it? the only ones you have on top of used-to-be-longhands are grid properties.<br> <florian> Rossen: I don't believe I've seen compat issues. I am reluctant to write a bunch of code for something that's not needed.<br> <florian> TabAtkins: going forward, we need<br> <florian> s/we need/we need to./<br> <florian> TabAtkins: for legacy props, it wouldn't be the end of the world if we didn't do it, but it would be inconsistant and unfortunate.<br> <florian> emilio: It can be done quite easily for lots of properties<br> <florian> Florian: can we resolve to do on all, even if priorities means it might take a while<br> <florian> Rossen: we need consistency, so let's have it everywhere.<br> <florian> RESOLVED: all shorthands must show up in getComputedStyles<br> <florian> xidorn: I wonder if you should see the shorthands in the iterator<br> <florian> xidorn: I think there's a usecase for copying computed values from one element to another, and they just iterate through<br> <florian> myles: This should be a separate issue.<br> <florian> [mumble mumble]<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2529#issuecomment-402386896 using your GitHub account
Received on Wednesday, 4 July 2018 07:18:22 UTC