Re: [csswg-drafts] Proposal: CSS @sheet (#11509)

> Will there be a restriction on where `@sheet` is allowed? Only top-level, and before `@import`?

Yes, there are restrictions on where `@sheet` is allowed. You can think of each `@sheet` conceptually as a separate file , so they would have to be top-level (and not nestable). 

This was discussed here: https://github.com/w3c/csswg-drafts/issues/5629#issuecomment-1498299448

The discussion around `@import` in that thread was mostly about importing the `@sheet` fragment, not necessarily the ordering rules between `@sheet` and `@import`. Given that `@import` currently needs to be before any other at-rules, we should be able to keep this behavior for `@sheet`.

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


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

Received on Monday, 27 January 2025 23:06:01 UTC