Re: [csswg-drafts] [css-logical] Unclear text regarding shorthands that encompass both logical and physical longhands (#7057)

> Shorthand properties that encompass both logical and physical longhands (such as the all shorthand) set omitted values first, and otherwise set the physical values last. For example, all: inherit will set all of the margin properties to inherit, but since the physical longhands are set last, the child’s margins will inherit from their physical counterparts in the parent.

If a shorthand property that encompasses both logical and physical longhands 
(such as the 'all' shorthand) 
explicitly assigns values to some of its longhands, 
those longhands take precedence 
over other longhands implicitly *reset* by the shorthand. 
Within each group 
(the explicitly set longhands, and the implicitly reset longhands), 
physical longhands take precedence over logical longhands. 
For example, 
''all: inherit'' explicitly sets all of the margin properties to inherit, 
so the physical margin longhands are set "last" 
(overriding the logical ones), 
and the child’s margins will inherit from their physical counterparts in the parent.

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


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

Received on Wednesday, 30 March 2022 22:04:54 UTC