Skip to content

Some -of-type fixes#170

Open
wRAR wants to merge 2 commits into
masterfrom
fix-root-only-child
Open

Some -of-type fixes#170
wRAR wants to merge 2 commits into
masterfrom
fix-root-only-child

Conversation

@wRAR

@wRAR wRAR commented Jul 17, 2026

Copy link
Copy Markdown
Member
  1. ns|* with -of-type pseudo-classes counts the namespace, not the type
  2. The root element never matches :only-child/:only-of-type

Found and fixed by an LLM, all test cases validated manually.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.61%. Comparing base (743c6e5) to head (00dbf6a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #170   +/-   ##
=======================================
  Coverage   96.61%   96.61%           
=======================================
  Files           3        3           
  Lines         885      886    +1     
  Branches      136      132    -4     
=======================================
+ Hits          855      856    +1     
  Misses         14       14           
  Partials       16       16           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wRAR wRAR changed the title Make the root element match :only-child and :only-of-type. Some -of-type fixes Jul 17, 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