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

Re: [csswg-drafts] [css-contain-2] Combination of shortcuts and values (#5506)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 10 Sep 2020 16:42:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-690481668-1599756166-sysbot+gh@w3.org>
Hm, indeed.

I think the example is useful - being able to say "everything that `strict` does, plus `style` containment" seems reasonable, which is presumably why I wrote the example that way in the first place. ^_^

So I'm inclined to allow combination. Further questions, then:

* do we want to be strict about combining the shorthands *only* with additional values? That is, would `strict size` be valid (equivalent to just `strict`) or invalid? I'm inclined to say it's fine, but I could go either way. Saying it's invalid is *slightly* annoying to specify in the grammar, but not too bad.
* if we rule that the previous question is "it's valid", is it okay to repeat the same keyword, like `size size`? I'm inclined to say no, that's a clearer error.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 10 September 2020 16:42:48 UTC

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