[csswg-drafts] [css-display] Not all "full display" values are valid

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display] Not all "full display" values are valid ==
CSS Display has a [summary of `display` values](https://drafts.csswg.org/css-display/#display-value-summary):

> The following informative table summarizes the values of [`display`](https://drafts.csswg.org/css-display/#propdef-display)

However, not all the values in the table conform to the syntax of the property:

>     [ <display-outside> || <display-inside> ] |
>     <display-listitem> | <display-internal> | <display-box> | <display-legacy>
> 
>     <display-outside>  = block | inline | run-in ;
>     <display-inside>   = flow | flow-root | table | flex | grid | ruby ;
>     <display-listitem> = list-item && <display-outside>? && [ flow | flow-root ]?
>     <display-internal> = table-row-group | table-header-group |
>                          table-footer-group | table-row | table-cell |
>                          table-column-group | table-column | table-caption |
>                          ruby-base | ruby-text | ruby-base-container |
>                          ruby-text-container ;
>     <display-box>      = contents | none ;
>     <display-legacy>   = inline-block | inline-list-item |
>                          inline-table | inline-flex | inline-grid ;

Specifically, `table-cell flow-root`, `table-caption flow-root`, `ruby-base flow` and `ruby-text flow` are wrong because they mix a `<display-internal>` and a `<display-inside>`, but the syntax does not allow this.

This seems a reminiscence of the [2014 WD](https://www.w3.org/TR/2014/WD-css-display-3-20140911/), which had a more permissive syntax.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1225 using your GitHub account

Received on Sunday, 16 April 2017 03:54:45 UTC