Skip to content

[css-display] Not all "full display" values are valid #1225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Loirooriol opened this issue Apr 16, 2017 · 1 comment
Closed

[css-display] Not all "full display" values are valid #1225

Loirooriol opened this issue Apr 16, 2017 · 1 comment

Comments

@Loirooriol
Copy link
Contributor

CSS Display has a summary of display values:

The following informative table summarizes the values of 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, which had a more permissive syntax.

@tabatkins
Copy link
Member

Yup, it's a leftover from the older draft. I've removed those rows, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants