Skip to content

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Aug 26, 2025

Fixes #93

StyleSheet declarations with multiple Selectors are now useable:

.a, .b {
    fill: red;
}

Both class="a" and class="b" will now receive fill: red;

Additionally duplicate selectors correctly cascade with the last attribute winning:

.a {
   fill: red;
}
.a {
  stroke: blue;
}
.a {
   fill: purple;
}

Will resolve to

.a {
   fill: purple;
   stroke: blue;
}

@swhitty swhitty force-pushed the multiple-selectors branch from 1ba427c to 3553cd6 Compare August 26, 2025 01:12
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.74%. Comparing base (1355dce) to head (3553cd6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   89.68%   89.74%   +0.06%     
==========================================
  Files         144      144              
  Lines       12291    12351      +60     
==========================================
+ Hits        11023    11085      +62     
+ Misses       1268     1266       -2     

☔ View full report in Codecov by Sentry.
📢 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.

@swhitty swhitty merged commit 5886ae2 into main Aug 26, 2025
20 checks passed
@swhitty swhitty deleted the multiple-selectors branch August 26, 2025 01:52
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.

Problem With Style Applied to Multiple Classes

1 participant