8000 fix: add support for nested CSS by onmax Β· Pull Request #384 Β· nuxt/fonts Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: add support for nested CSS #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

onmax
Copy link
Contributor
@onmax onmax commented Nov 13, 2024

πŸ”— Linked issue

resolves #371

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Adds support for nested CSS when the module parses CSS.

I don't want to create a lot of tests, so the test I have added is minimal but covers different nested CSS situations

@onmax onmax force-pushed the onmax/support-nested-css branch 2 times, most recently from 2b5506a to 4f4c8f6 Compare November 14, 2024 10:50
@onmax onmax marked this pull request as ready for review November 14, 2024 10:51
@onmax onmax requested a review from danielroe as a code owner November 14, 2024 10:51
@codecov-commenter
Copy link
codecov-commenter commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 83.96%. Comparing base (07fa84e) to head (8daa232).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #384      +/-   ##
==========================================
+ Coverage   83.85%   83.96%   +0.10%     
==========================================
  Files          13       13              
  Lines        1016     1029      +13     
  Branches      266      271       +5     
==========================================
+ Hits          852      864      +12     
- Misses        158      159       +1     
  Partials        6        6              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@danielroe danielroe changed the title chore: add support for nested CSS fix: add support for nested CSS Dec 5, 2024
Copy link
Member
@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you - this looks great!

This will soon be coming natively to csstree - see csstree/csstree#268 (comment) after which we can remove this, but your solution should gracefully fall back as it will then no longer emit Raw nodes.

@danielroe danielroe merged commit bb2aa9d into nuxt:main Dec 5, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Dec 5, 2024
@onmax onmax deleted the onmax/support-nested-css branch December 5, 2024 17:22
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.

Nested CSS font-family not working as expected
3 participants
0