Re: [csswg-drafts] [css-backgrounds] Number of layers in getComputedStyle results (#4135)

> It's not a special case where resolved value should be the used value. So I would expect getComputedStyle to return the computed value, which would have as many entries as specified since there's nothing in CSS Backgrounds that says otherwise. (And making the actual computed values match the background-image list length could mean losing information that should be available for inheritance.)

I totally agree with this (and thus think Gecko is right in this case).

Furthermore I'd argue that similar properties like animations or transitions already work that way everywhere, so I think this is just a Blink / WebKit bug.

> But, I'm not sure what should happen with a background shorthand from gCS if the style was originally set with longhands.

When the values cannot be appropriately represented as a shorthand, it should return the empty string, that's what every other property does.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4135#issuecomment-513584875 using your GitHub account

Received on Sunday, 21 July 2019 20:24:33 UTC