Skip to content

docs(rules): fake-auth-overlay states that a <style> with media or type is read as applying - #1676

Closed
nc9 wants to merge 1 commit into
mainfrom
docs/overlay-style-media-type-1566
Closed

nc9 wants to merge 1 commit into
mainfrom
docs/overlay-style-media-type-1566

Conversation

@nc9

@nc9 nc9 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Refs #1566 (does not close it)

What

docs/rules/integrity/fake-auth-overlay.mdx states one more limit: every <style> block is read whatever its media or type attribute says, so a block a browser would not apply (<style media="print">, <style type="text/plain">, a disabled one) is read as applying. packages/rules/tests/overlay-style-attrs-1566.test.ts pins that behaviour (a decoy in such a block still hides the cover, and a cover in one is still a cover), so the page and the code cannot drift apart.

Acceptance criteria of #1566

  • 1, 2, 4: already met on main (ASCII-only fold, quirks mode, the five mutant tests).
  • 3: not met as written, and not changed here. [x=y s] and :bogus are deliberately read as undecided (a browser may accept them), not as syntax errors; the issue comment proposes the amended wording and it is the maintainer's call.
  • 5: the missing limit (<style media> and type) is now on the rule page and in the CHANGELOG. The other limits (undecided rules, @layer order, the legacy doctype) were already stated.

So this closes the gap the acceptance check named for box 5; the issue stays open for box 3.

make validate, tsgo in packages/rules and root lint pass. The squirrelscan agent skill needs no change.

@nc9 nc9 mentioned this pull request Nov 11, 2026
@nc9

nc9 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Landed on main as 8ee6c93 (later commits there carry the review fixes). Closing this draft as superseded.

nik

@nc9 nc9 closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant