[csswg-drafts] [cssom] definition of getComputedStyle refers to resolved values at the wrong time (#6144)

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] definition of getComputedStyle refers to resolved values at the wrong time ==
The [definition of `getComputedStyle()`](https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle) currently has the following as part of its step 5:

> set decls to a list of all longhand properties that are supported CSS properties, in lexicographical order, with the value being the resolved value computed for obj using the style rules associated with doc.

and then the following as part of its step 6:

> Return a live CSS declaration block with the following properties:
>> **computed flag**
>>> Set.

The way this references the resolved values (despite the "live CSS declaration block") seems to imply that the access to the resolved values happens at the time that `getComputedStyle` is called, when in fact the resolved values are computed at the time that `getPropertyValue` or equivalent accessors are called on the live declaration.

It seems to me that this would be clearer if there were something in the definition of [`getPropertyValue`](https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-getpropertyvalue) that considered the **computed flag**.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6144 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 25 March 2021 21:46:47 UTC