Re: [csswg-drafts] Proposal: "until" pseudo selector (#8815)

The sibling scope at-rule will work for this use-case, @bramus is working on spec text for that.

The issue with doing it as a pseudo-class (which we considered) is related to @Loirooriol's comment: the 'scope-end' element has to be defined in relation to a specific 'scope-start' element, and the selector subject has to be defined in relation to that resulting scope. That means we need to match three distinct selectors to three distinct subjects. There might be ways to do that in a pseudo-class or other selector syntax, but so far it seems clearer in an at-rule, where each of the three selectors has it's own space.

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


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

Received on Monday, 8 May 2023 15:50:54 UTC