Skip to content

[css-flexbox-1] [css-grid-2] [css-ruby-1] Flag "New values" tables for display property as informative #7242

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

Merged
merged 1 commit into from
May 2, 2022

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented May 2, 2022

Via mdn/yari#4656 (comment)

The CSS Display spec defines possible values for the display property. This includes flex, grid, ruby and associated values, whose meanings are normatively defined in CSS Flexbox, CSS Grid and CSS Ruby.

On top of meanings, the CSS Flexbox, CSS Grid and CSS Ruby specs actually redefine the values themselves through a "New Values" table. This is fully clear for humans, but a naive attempt to extract formal value definitions from CSS specs ends up with the impression that flex, grid and ruby are actually normatively defined twice.

This update proposes to flag the "New values" tables in CSS Flexbox, CSS Grid and CSS Ruby as "informative" so that extraction tools can understand that the values themselves are actually defined in CSS Display. This does not introduce any visual change.

(Note the "informative" class cannot be added to the <pre> tag directly as Bikeshed does not preserve the class when it generates the spec)

Via mdn/yari#4656 (comment)

The CSS Display spec defines possible values for the `display` property. This
includes `flex`, `grid`, `ruby` and associated values, whose meanings are
normatively defined in CSS Flexbox, CSS Grid and CSS Ruby.

On top of meanings, the CSS Flexbox, CSS Grid and CSS Ruby specs actually
redefine the values themselves through a "New Values" table. This is fully clear
for humans, but a naive attempt to extract formal value definitions from CSS
specs ends up with the impression that `flex`, `grid` and `ruby` are actually
defined twice.

This update flags the "New values" tables in CSS Flexbox, CSS Grid and CSS Ruby
as "informative" so that extraction tools can understand that the values
themselves are actually defined in CSS Display. This does not introduce any
visual change.
@tabatkins
Copy link
Member

(Note the "informative" class cannot be added to the pre tag directly as Bikeshed does not preserve the class when it generates the spec)

Ah, this should be considered a bug; I transfer attributes from other shorthands into the generated versions. The point this translation occurs in the code makes it slightly funky to do so (it's a textual transformation, preceding DOM parsing), but not too bad.

(But happy to merge this as-is for now, rather than waiting for me to do a fix.)

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

Successfully merging this pull request may close these issues.

2 participants