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-layout-api] Is there any way to access the properties of children of an element that uses display: layout(foo) ? #1082

Open
Nantris opened this issue Jan 19, 2023 · 2 comments

Comments

@Nantris
Copy link

Nantris commented Jan 19, 2023

Regarding this spec: https://github.com/w3c/css-houdini-drafts/blob/main/css-layout-api/EXPLAINER.md

I wonder if there's any way to access child properties during the layout? For example, if some elements in the layout need to be displayed differently, how could we identify and target them? Is it possible?

@Nantris
Copy link
Author

Nantris commented Jan 19, 2023

Whoops I think this seems possible with this part: https://github.com/w3c/css-houdini-drafts/blob/main/css-layout-api/EXPLAINER.md#querying-style

At first I thought we could only query the parent's styles.

@Nantris
Copy link
Author

Nantris commented Jan 19, 2023

It's not clear how to pass data to a layout fragment - especially since the spec seems to mention data as being part of the constraints but it only appears in the explainer under breakToken.

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

No branches or pull requests

1 participant