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

Re: [csswg-drafts] [css-logical-1] [css-cascade-3] The all longhand probably shouldn't set logical properties.

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 Oct 2017 05:53:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-338554555-1508737994-sysbot+gh@w3.org>
The problem of making `all` not expand to logical properties is that it in some case it would fail to reset all properties in some cases. For example, if someone has
elem.style.paddingLeft = '10px';
elem.style.paddingInlineStart = '10px';
elem.style.all = 'initial';
people should be expecting that there is no padding anymore. However, if `all` doesn't reset logical properties, we would still have `padding-inline-start` left there.

I guess the solution should be having the order defined in the way that, logical properties go before physical ones. This doesn't fix the issue that the two pieces of code having different behavior, but it at least provides a behavior compatible with pre-logical world, and can consistently reset all properties with `all`.

GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1898#issuecomment-338554555 using your GitHub account
Received on Monday, 23 October 2017 05:53:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC