Re: [csswg-drafts] [css-syntax] Make it easier to express ranges for <An+B> selectors (#4140)

After some great discussion, this feature request unfortunately fell asleep. So let's wake it up again!

Just a quick summary of the two proposals we had so far:
* My one focuses on the resulting element indexes and borrows its syntax from Media Queries. Basically, it allows to define a minimum and maximum index and looks like this: `C <= An+B <= D` (with possible variations like in the Media Queries syntax)
   With `C` and `D` allowing for negative values, meaning to count the index from the end.
* @Loirooriol's focuses on the maximum number of elements to style and by that on the `n` itself. This syntax looks like this: `An+B, n <= C`

I think the use cases are clearly expressed and the two approaches as well. So maybe we can discuss that on the F2F.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4140#issuecomment-1616820316 using your GitHub account


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

Received on Sunday, 2 July 2023 21:14:20 UTC