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

[csswg-drafts] [css-align] place-items shorthand has wrong grammar

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Nov 2016 16:07:13 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-191731808-1480090031-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-align] place-items shorthand has wrong grammar ==
https://drafts.csswg.org/css-align/#place-items-property
The grammar allows `auto` in the first (or single) value.
It shouldn't allow it because `align-items` doesn't have an `auto` 
value:
https://drafts.csswg.org/css-align/#propdef-align-items

So, I think the correct grammar should be:
```
<x> = [ normal | stretch | <baseline-position> | <self-position> ]
place-items:  <x> [ auto | <x> ]?

```
IOW, `auto` should only be allowed as a second value.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/763 using your GitHub 
account
Received on Friday, 25 November 2016 16:07:20 UTC

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