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: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 05 Nov 2020 14:25:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-722410984-1604586331-sysbot+gh@w3.org>
@emilio Not sure if I get it the spec text right, taking for example this *declaration block*:

margin-top: 10px;
margin-right: 10px;
margin-left: 10px;
margin-inline-start: 10px;
margin-block-start: 10px;
margin-block-end: 10px;
margin-inline-end: 10px;
margin-bottom: 10px

So we reach the new step with
property = margin-top
already-serialized = []
shorthands = [margin, all]
shorthand = margin
longhands = [margin-top, margin-right, margin-left, margin-inline-start,
             margin-block-start, margin-block-end, margin-inline-end, margin-bottom]
current-longhands = [...longhands]

Then, we have mixed mapping logic, but all declarations in *declaration block* are in *current longhands*, so it seems to me we would serialize using `margin`?

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3030#issuecomment-722410984 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 14:25:38 UTC

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