W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Thu, 05 Nov 2020 18:13:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-722549958-1604600027-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC