Re: [csswg-drafts] [css-logical-1] Interaction of shorthands and logical properties (#3030)

> So even if we resolved on this:
> 
> > First proposal from fremy: During parsing of a css declaration block, shorthands (like margin and all) expands only to the set of longhand (grouped by mapping logic: so either logical or physical) required to describe their value, and by default resort to use physical properties if both sets are possible. Note that they can only expand if they do not contain var() substitutions.
> 
> still it seems the new spec text isn't wrong as long as `margin` is defined to be a shorthand for only physical properties... If / when that changes we might want to revisit that.
> 
> I still think the above proposal is wrong. `all` should expand to _both_ logical and physical properties IMO.

On second thoughts, I did not consider `all` very well in my statement. I thought only of hypothetical properties like `margin` that would cover both logical and physical longhands part of the same group. In the case of `all`, it is more difficult to figure that out, because that would potentially depend for each group (could be physical for margin, but logical for padding).

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


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

Received on Thursday, 5 November 2020 18:13:49 UTC