w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.42k stars 648 forks source link

[cssom] getComputedStyle should sort vendor-prefixed longhands at the end #10033

Open Loirooriol opened 5 months ago

Loirooriol commented 5 months ago

https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle

set decls to a list of all longhand properties that are supported CSS properties, in lexicographical order

However, all browsers agree that properties starting with - should be at the end, even though '-' < 'a'.

https://wpt.fyi/results/css/cssom/getComputedStyle-property-order.html

Loirooriol commented 5 months ago

Seems we need something like https://drafts.csswg.org/cssom/#concept-shorthands-preferred-order for longhands.