Skip to content
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

[css-flexbox] Replaced flex items #5188

Closed
SimonSapin opened this issue Jun 9, 2020 · 2 comments
Closed

[css-flexbox] Replaced flex items #5188

SimonSapin opened this issue Jun 9, 2020 · 2 comments
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-flexbox-1 Current Work

Comments

@SimonSapin
Copy link
Contributor

Flex items can be generated by replaced elements, but I don’t find anything about this case in https://drafts.csswg.org/css-flexbox/ (except in a note about blockification of the display property).

https://drafts.csswg.org/css-flexbox/#cross-sizing says to "perform layout" without further details, but as far as I know there isn’t a definition of layout for replaced element that is independent of their context / layout mode. CSS 2 has separate sections for inline replaced elements, for block elements in normal flow, etc.

Should there be a normative sentence that https://drafts.csswg.org/css2/visudet.html#inline-replaced-width and https://drafts.csswg.org/css2/visudet.html#inline-replaced-height apply?

For comparison, https://drafts.csswg.org/css-grid/#intrinsic-sizes is more specific.

@fantasai
Copy link
Collaborator

Hi @SimonSapin, we've clarified that performing layout invokes the same rules as for block-level layout. Let us know if this addresses your issue.

Note: The section you're referring to defines the sizes of a grid container, not a grid item, so isn't analogous here.

@SimonSapin
Copy link
Contributor Author

I copied the wrong link for Grid, I meant https://drafts.csswg.org/css-grid/#grid-item-sizing

Either way, yes ab0e4fe looks good. Thanks!

@SimonSapin SimonSapin added Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. and removed Commenter Response Pending labels Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-flexbox-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants