Re: [csswg-drafts] [css-contain] Is there a use-case for querying explicit container selectors? (#6176)

If explicit container selectors are a thing, in my opinion, the syntax should be a little different than the one you proposed, @mirisuzanne. The syntax you suggested surrounds the selector with brackets. This kind of syntax is only used for the conditions in media queries so far.

One solution would be to just write the selector without brackets, i.e. `<selector>?`. Though in regard of #5811 and to make the syntax future-proof for possible extensions, the selector should probably rather be defined as a function.

Sebastian

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


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

Received on Monday, 5 April 2021 18:52:20 UTC