[css-backgrounds-4] How to set declarations of background-position
containing a logical keyword?
#9253
Labels
background-position
containing a logical keyword?
#9253
Context
background-position
as a shorthand is still under discussionbackground-position-x
/background-position-y
When the specified value includes a logical keyword, the text does not seem to know what it should exactly happen yet:
https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position
Logical longhand declarations must be added after physical longhand declarations, isn't it? And physical longhand declarations must be added after logical longhand declarations if physical keywords are specified.
If I am not mistaken, step 3.4.2 of serialize a CSS declaration block would need to be changed if the set of longhands that is not explicitly declared is not reset to its initial value:
For example: if
shorthand
maps to longhands included in a logical property group, and all longhands of the same mapping logic have a declaration inlonghands
(excluding longhand declarations that do not map toshorthand
) that come after any other declaration with another mapping logic, continue with the procedure.A similar check would be required in the procedure of
style.getPropertyValue()
.But what is the benefit of, I guess, preserving longhands declarations that would have been set before setting the shorthand with values for longhands that follow a different mapping logic?
The text was updated successfully, but these errors were encountered: