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

Re: [csswg-drafts] [css-logical-1] Order of inheritance vs. mapping in logical properties (#3029)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 20 Oct 2020 15:55:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-712953765-1603209305-sysbot+gh@w3.org>
![logical-inheritance](https://user-images.githubusercontent.com/725717/96610701-c5fa6e80-12b0-11eb-950c-504ddaf93089.jpeg)

So these are the two operations under considerations:

- Blue Line: Child’s `margin-inline-start` maps to `margin-right` which then inherits from parent’s `margin-right` (which is the parent’s `margin-inline-end`). This is what browsers currently do.
- Red Line: Child’s `margin-inline-start` (which is the child’s `margin-right`) inherits from parent’s `margin-inline-start` (which is matched with parent’s `margin-left`). This is what @r12a expects.

Keep in mind that properties are first cascaded (all together, logical and physical mixed and mapped by writing mode, latest declaration of a conflicting set winning), and then computed (which causes each matching pair to share a single computed value).

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 20 October 2020 15:55:08 UTC

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