[csswg-drafts] [web-animations-1] Order of steps for resolving properties in keyframes is wrong with regard to logical vs physical properties (#3532)

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

== [web-animations-1] Order of steps for resolving properties in keyframes is wrong with regard to logical vs physical properties ==
Spec: https://drafts.csswg.org/web-animations/#calculating-computed-keyframes

Has:

> If conflicts arise when expanding shorthand properties or replacing logical properties with physical properties, apply the following rules in order until the conflict is resolved:
> 
> 1. Longhand properties override shorthand properties (e.g. border-top-color overrides border-top).
> 
> 2. Shorthand properties with fewer longhand components override those with more longhand components (e.g. border-top overrides border-color).
> 
> 3. For shorthand properties with an equal number of longhand components, properties whose IDL name (see the CSS property to IDL attribute algorithm [CSSOM]) appears earlier when sorted in ascending order by the Unicode codepoints that make up each IDL name, override those who appear later.
> 
> 4. Physical properties override logical properties.

But as @emilio [points out in Mozilla bug 1519944](https://bugzilla.mozilla.org/show_bug.cgi?id=1519944#c3) step 4 is useless since step 3 will resolve the conflict. Instead step 4 should be moved either before step 3 or 2.

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

Received on Monday, 21 January 2019 00:07:49 UTC