I know we are talking about syntax for a **feature** query, and a lot has already been brought up, but wanted to make sure it was addressed that previously the concept of a "selector" query was mentioned to match a selector against the current state of the document. In https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221672439 @tabatkins said... > @fantasai So if we pretend there's a selector() function that is true if something on the page matches that selector, I think you'd write: > > @when selector(body.toc-inline) or (media(width < 28em) and not selector(body.toc-sidebar)) { > /* inline ToC styling */ > } @else { > /* sidebar ToC styling */ > } Figured it worth mentioning, even if some other syntax like `query()` could be better. -- GitHub Notification of comment by jonjohnjohnson Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3207#issuecomment-436789451 using your GitHub accountReceived on Wednesday, 7 November 2018 21:48:07 UTC
This archive was generated by hypermail 2.4.0 : Saturday, 2 July 2022 03:21:14 UTC