Re: [csswg-drafts] Define canonical order of longhand properties (#6894)

The order in `<final-bg-layer>` got changed many years ago. For the background of this, please see https://bugzilla.mozilla.org/show_bug.cgi?id=743392 and https://lists.w3.org/Archives/Public/www-style/2015Jan/0406.html.

It seems Chromium's implementation is incorrect as it should follow the canonical order as described in https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-getpropertyvalue. Interestingly, the serialization puts the color value first when working with the computed style.

```css
document.body.style.background = 'url("bg.jpg") left 10% / 100px 100% no-repeat fixed content-box padding-box red'
console.log(getComputedStyle(document.body).background)
// rgb(255, 0, 0) url("bg.jpg") no-repeat fixed 0% 10% / 100px 100% content-box padding-box
```

Sebastian

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


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

Received on Wednesday, 29 December 2021 22:44:13 UTC