Re: [csswg-drafts] [cssom] getComputedStyle and shorthands. (#2529)

> Which means that `getComputedStyle(document.documentElement).font` shouldn't be present, since it's a shorthand.

This doesn't actually follow from the current spec; `font` is a [supported CSS property](https://drafts.csswg.org/cssom/#supported-css-property) and therefore we [generate](https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-camel-cased-attribute):

```webidl
partial interface CSSStyleDeclaration {
  [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString font;
};
```

It does, however, mean that `font` doesn't appear as an indexed property.

> The object’s supported property indices are the numbers in the range zero to one less than the number of CSS declarations in the declarations.

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


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

Received on Tuesday, 14 December 2021 17:04:39 UTC