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
{{ message }}
Repository navigation
overlay-style: namespaced type selectors keep a cover rule silent (star-pipe iframe, pipe iframe, attribute namespace) #1583
security/fake-auth-overlay never indexes a cover rule whose selector uses a namespace separator on the type: *|iframe.cover{...}, *|*.cover{...}, |iframe.cover{...}, *|iframe[id=google-auth]{...} and [*|id=google-auth]{...} all stay silent with the cover iframe present, although Chrome accepts these selectors and applies them to HTML iframes. parseCompound in packages/rules/src/integrity/overlay-style.ts rejects |, so the rule is never read. This is a detection evasion in the same family as the named-namespace case fixed in v0.0.162.
Acceptance Criteria
*|iframe.cover, *|*.cover, |iframe.cover, *|iframe[id=google-auth] and [*|id=google-auth] with the fixed full-viewport declarations fire when the cover iframe is present, at top level, inside @media, and nested.
A named namespace (h|x) stays doubtful (read as unknown), as in v0.0.162.
A test table compares each selector against a browser's accepted set (headless Chrome where available) and asserts the rule is not silent for every accepted form.
Acceptance check against main 8d22fa2 (fix shipped in v0.0.163):
#
Criterion
Result
Evidence
1
*|iframe.cover, *|*.cover, |iframe.cover, *|iframe[id=google-auth], [*|id=google-auth] fire at top level, in @media, nested
PASS
packages/rules/tests/overlay-namespace-1583.test.ts: ACCEPTED forms (the star-pipe and attribute ones) fire at top level, in a list, in @media, in @layer/@supports and nested, and as a decoy they hide the cover. The |iframe.cover forms are in ACCEPTED_NOT_APPLIED: Chrome accepts them but does not apply them to an HTML element, so they are read as undecided; the cover rule still fires in every position and a decoy does not hide the cover.
2
A named namespace (h|x) stays doubtful
PASS
Same file, case "a named namespace stays doubtful": selectorListState is doubtful for h|x, h|iframe.cover, h|*.cover, [h|id=google-auth]; rule fires and a decoy does not hide the cover.
3
A test table compares selectors against a browser's accepted set (headless Chrome where available) and asserts the rule is not silent for every accepted form
PASS
Case "a table of forms against headless Chrome": asks Chrome CSS.supports and matches for every form and asserts the rule fires for each one Chrome applies. Note it looks for google-chrome, google-chrome-stable, chromium or chromium-browser on PATH, so on macOS it skips with a warning unless one is linked. I ran it with google-chrome pointing at Chrome 156: not skipped, passes.
Ran: bun test tests/overlay-namespace-1583.test.ts in packages/rules, with and without Chrome on PATH: 26 pass, 0 fail. Also confirmed docs/rules/integrity/fake-auth-overlay.mdx describes the namespace behaviour.
Activity
fix(rules): fake-auth-overlay reads cover rules with a namespace sepa…
test(rules): overlay namespace Chrome table is non-gating: own profil…
nc9 commentedon Nov 4, 2026
Acceptance check against main 8d22fa2 (fix shipped in v0.0.163):
*|iframe.cover,*|*.cover,|iframe.cover,*|iframe[id=google-auth],[*|id=google-auth]fire at top level, in@media, nestedpackages/rules/tests/overlay-namespace-1583.test.ts: ACCEPTED forms (the star-pipe and attribute ones) fire at top level, in a list, in@media, in@layer/@supportsand nested, and as a decoy they hide the cover. The|iframe.coverforms are in ACCEPTED_NOT_APPLIED: Chrome accepts them but does not apply them to an HTML element, so they are read as undecided; the cover rule still fires in every position and a decoy does not hide the cover.h|x) stays doubtfulselectorListStateisdoubtfulforh|x,h|iframe.cover,h|*.cover,[h|id=google-auth]; rule fires and a decoy does not hide the cover.CSS.supportsandmatchesfor every form and asserts the rule fires for each one Chrome applies. Note it looks forgoogle-chrome,google-chrome-stable,chromiumorchromium-browseron PATH, so on macOS it skips with a warning unless one is linked. I ran it withgoogle-chromepointing at Chrome 156: not skipped, passes.Ran:
bun test tests/overlay-namespace-1583.test.tsinpackages/rules, with and without Chrome on PATH: 26 pass, 0 fail. Also confirmeddocs/rules/integrity/fake-auth-overlay.mdxdescribes the namespace behaviour.nik