MicrosoftEdge / MicrosoftEdge/MSEdgeExplainers

[@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?

Open
#940 1 comment 0 reactions 1 assignee View on GitHub

@aluhrs13 is already working on this.

Since Jan 22, 2025.

AtSheet
Dominant language
HTML
Stars
1.4k
Forks
286
Avg merge
3d 1h
Merged PRs (30d)
8

Description

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:

@sheet foo {
  div{
    color: red;
  }
}
div {
  color: blue;
}
<style>
  @import "sheet.css" /* Does the @sheet "foo" get dropped? */
</style>
<link rel="stylesheet" href="sheet.css"> <!-- Does the @sheet "foo" get dropped? -->

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.