You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[@sheet] If a stylesheet contains named @sheet references and rules outside of the @sheet references, what happens in all cases when a fragment identifier is not specified?
#940
Open
aluhrs13 opened this issue
Jan 22, 2025
· 1 comment
If a stylesheet contains named @sheet references and rules outside of the @sheet references, what happens in all cases when a fragment identifier is not specified? For example:
<style>@import"sheet.css"/* Does the @sheet "foo" get dropped? */</style><linkrel="stylesheet" href="sheet.css"><!-- Does the @sheet "foo" get dropped? -->
The text was updated successfully, but these errors were encountered:
By "dropped" do you mean "style rules within @sheet are not applied"? If so, I think the answer is "yes," but I'd imagine the contents of @sheet are still reachable in some way via CSSOM.
(My general mental model for @sheet is similar to SVG <defs>, where the content is fully part of the object model but doesn't participate in rendering unless explicitly referenced.)
If a stylesheet contains named @sheet references and rules outside of the @sheet references, what happens in all cases when a fragment identifier is not specified? For example:
The text was updated successfully, but these errors were encountered: