Skip to content
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

fix: Support @starting-style #602

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Conversation

jantimon
Copy link
Contributor

@jantimon jantimon commented Jun 5, 2024

What:

Upgraded the @adobe/css-tools dependency to include the fix for parsing the @starting-style CSS feature, which was causing a missing '}' error.

Why:

The current version of @adobe/css-tools used by testing-library/jest-dom fails to parse the @starting-style CSS feature, resulting in a parsing error. The upgrade includes a fix for this issue, allowing for the correct parsing of CSS files using @starting-style.

How:

The changes were implemented by updating the package.json file to use the latest version of @adobe/css-tools which includes the fix from the PR I submitted to @adobe/css-tools (adobe/css-tools#323).

Checklist:

  • Documentation
  • Tests (N/A due to dependency on jsdom and CSSOM updates)
  • Updated Type Definitions (N/A)
  • Ready to be merged

Additional Comments:

Unfortunately, I could not add a test case for the @starting-style feature because jsdom 20 uses CSSOM 0.6.0 for CSS parsing, which also has a similar issue.
I fixed that already in this PR (rrweb-io/CSSOM#1), but the latest version of jsdom cannot be merged into jest. See jestjs/jest#14846 (comment) for details

@gnapse gnapse merged commit 3f45f14 into testing-library:main Jun 10, 2024
5 checks passed
@gnapse gnapse changed the title Pr/starting style fix: Support @starting-style Jun 10, 2024
gnapse pushed a commit that referenced this pull request Jun 10, 2024
@gnapse
Copy link
Member

gnapse commented Jun 11, 2024

@all-contributors please add @jantimon for bug

Copy link
Contributor

@gnapse

I've put up a pull request to add @jantimon! 🎉

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.

2 participants