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

No json shows anchor-size() can be used as value for sizing properties #1312

Closed
OnkarRuikar opened this issue Aug 8, 2024 · 4 comments
Closed

Comments

@OnkarRuikar
Copy link

LIke stretch and fit-content values the css-anchor-position-1.json needs to show width and other properties take anchor-size() as value.

@tidoust
Copy link
Member

tidoust commented Aug 19, 2024

As done in css-sizing-4, css-anchor-position would ideally list the impacted CSS properties in a table with a "New Values" row instead of only saying so in prose.

On top of allowing the crawler to report that information automatically in the extract, this would help clarify what exact properties can take anchor-size() as value. For example, the prose links to the definition of sizing properties in css-sizing-3, which has a note that targets css-logical-1. Can anchor-size() also be used with the flow-relative properties defined in css-logical-1? (Or maybe that just does not make any sense?)

Also, if I'm reading things correctly, it seems the CSS WG resolved to extend the list of properties on which anchor-size() could be used not long ago, see w3c/csswg-drafts#9827 (comment).

If there's an issue opened against the spec, we could add a CSS patch to add "New values" entries in the css-anchor-position CSS extract (we try to always associate patches with issues so that we know when to drop it).

@OnkarRuikar
Copy link
Author

OnkarRuikar commented Aug 19, 2024

Can anchor-size() also be used with the flow-relative properties defined in css-logical-1?

It looks like it does.

If there's an issue opened against the spec, we could add a CSS patch to add "New values" entries in the css-anchor-position CSS extract (we try to always associate patches with issues so that we know when to drop it).

I've raised an issue in the spec w3c/csswg-drafts#10764

@OnkarRuikar
Copy link
Author

If there's an issue opened against the spec, we could add a CSS patch to add "New values" entries in the css-anchor-position CSS extract (we try to always associate patches with issues so that we know when to drop it).

We do not need a patch now. After the requested spec update, the values are reflected in the webref. If you feel the changes are right then please close the issue.

@tidoust
Copy link
Member

tidoust commented Sep 2, 2024

Great, thanks for reporting the issue!

@tidoust tidoust closed this as completed Sep 2, 2024
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

2 participants