Skip to content

Improvements to stylesheet parsing#3653

Merged
bsweeney merged 5 commits intomasterfrom
style-improvements
Sep 13, 2025
Merged

Improvements to stylesheet parsing#3653
bsweeney merged 5 commits intomasterfrom
style-improvements

Conversation

@bsweeney
Copy link
Copy Markdown
Member

@bsweeney bsweeney commented Sep 1, 2025

  • Fixes support for data-URIs that are not base64 encoded
  • Improves stylesheet media query parsing
  • Includes DPI in length calculation cache key
  • Adds inset to the dependency map for font size

This change simplifies the regex for the at-media and unsupported at-* regex and utilizes the rescurse operator to improve nested media query parsing. The media query body content is reprocessed through the base CSS parser so that nested rules are properly parsed.

fixes #3601
The previous logic was designed around base64-encoded data URIs and failed to correctly parse other types of data URIs such as SVG documents. This change modifies the logic to better support allowed escaped or unescaped bounding characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant