W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Sun, 21 Jul 2019 20:24:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-513584875-1563740670-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC