[csswg-drafts] [css-anchor-position-1] Support for dynamic styling such as box-shadow based on position-try (#12455)

madmoizo has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position-1] Support for dynamic styling such as box-shadow based on position-try ==
I've been experimenting with `@position-try` and `position-try-fallbacks`, and noticed that some CSS properties aren’t valid descriptors within the current positioning system.
In my use case, adapting visual styles like `box-shadow` dynamically based on the chosen position (top, bottom, etc.) is required.

1. Would it be possible to allow new style descriptors inside `@position-try` blocks?

2. If not, is there an alternative-native approach to apply CSS styles conditionally, depending on the resolved `position-try-fallback`?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12455 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 7 July 2025 06:26:25 UTC