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-contain-3] Make the query container an element, ++ #6378

Merged
merged 1 commit into from Jun 14, 2021

Conversation

andruud
Copy link
Member

@andruud andruud commented Jun 14, 2021

It is simpler to treat elements as query containers, and delay
interaction with the layout box until query-evaluation-time.
This makes it possible to answer the question "is this element a
container?" sooner, which is beneficial for implementing the feature.

It also seems to make more sense given that we're going to have
container features that don't really care about the layout box.

Also:

  • Require layout containment for dimensional queries.
  • Add 'block-size' as part of the computed value.

It is simpler to treat *elements* as query containers, and delay
interaction with the layout box until query-evaluation-time.
This makes it possible to answer the question "is this element a
container?" sooner, which is beneficial for implementing the feature.

It also seems to make more sense given that we're going to have
container features that don't really care about the layout box.

Also:

 - Require layout containment for dimensional queries.
 - Add 'block-size' as part of the computed value.
@andruud
Copy link
Member Author

andruud commented Jun 14, 2021

cc @mirisuzanne

Copy link
Contributor

@mirisuzanne mirisuzanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes make sense to me, thanks.

@mirisuzanne mirisuzanne merged commit 99208dc into w3c:main Jun 14, 2021
@andruud andruud deleted the cq_element branch August 24, 2022 08:22
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.

None yet

2 participants