Repository navigation
fix(rules): a CSS-nesting rule that may hide an element reads unknown, with Chromium rows #1013 - #1030
Closed
nc9 wants to merge 2 commits into
Closed
fix(rules): a CSS-nesting rule that may hide an element reads unknown, with Chromium rows #1013#1030nc9 wants to merge 2 commits into
nc9 wants to merge 2 commits into
Conversation
…, with Chromium rows #1013 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1030. It adds tests, Chromium fixture rows and docs on top of the reader change that landed in #1020. I read the diff only and did not run the tests. I found no correctness, security or performance problems. The diff touches no source files, so the risk is low.
|
nc9
added a commit
that referenced
this pull request
Oct 22, 2026
…nt, skip reasons, link phrases (#1034) Batch of six reviewed PRs landed through one branch and one CI run: - #1032 Bun 1.4.4 pin (CA blocklist for the eight compromised eMudhra intermediates, NSS 3.131.1 roots) - #1030 nested CSS evidence for the style reader (repro from #1014 by @dbdefault) - #1025 page-intrinsic skips use a not-applicable reason so priors resolve - #1019 generic link phrases in ten more languages for link-text and anchor-text - #1021 content/word-count skips noindex pages - #1023 retirement of abandoned crawls uses the crawl lease Plus a test fix for the residency probe on Bun 1.4.4 linux-x64. Closes #840 Closes #946 Closes #1011 Closes #1013 Refs #841 Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repro and the nesting shapes from #1014 by @dbdefault.
The reader code change for this issue landed with #1020: a rule nested inside a style rule made the reader give up, and giving up now reads every element as
unknown, nevershown. This PR adds what #1013 asks for on top: the Chromium evidence, the invariant test and the docs. (Replaces #1022, which GitHub closed when its stacked base branch was deleted on merge.)packages/rules/tests/fixtures/static-hidden-chromium.json: 13nesting:rows, each rendered in headless Chromium at 1024px (the repro,@supports,&with a descendant, implicit&,&alone, a hiding outer rule beside a nested one, a nested sibling combinator, nestedvisibility, nesting inside an at-rule, and the four shown cases: nested rule that sets neither property,&:hover, a nested rule reaching another element, a false nested@media).packages/rules/tests/static-hidden.test.ts: a new invariant, nevershownwhere Chromium hides anesting:element (all 9 hidden rows; they fail without fix(rules): a page past the style reader's limits reads elements as unknown, not shown #1015 #1020), plus a nested rule that sets neither property keepsshownand an unnested rule keepshidden. The existing "never hidden where Chromium shows" invariant covers the 4 shown rows.Tests: static-hidden 371 pass (11 fail with #1020's change reverted);
tsgoclean in packages/rules;tangly check --strictclean. Rows were generated with headless Chromium (script kept in ops scratch, not committed).Tradeoff, same as #1020: the reader does not narrow nested rules to the elements they reach, so a page with a nested
display/visibilityrule reads all its elements as unconfirmed.Agent skill (
squirrelscan/skills): not needed.Closes #1013