Skip to content

Conversation

FedeP89
Copy link

@FedeP89 FedeP89 commented Sep 22, 2025

Fix CSS parsing for media queries containing ID selectors

  • Updated regex pattern to detect media queries with ID selectors (@media[^{]{[^}]#)
  • Fixed bracket handling for media queries by adding double closing brackets (}}) when missing
  • Ensures proper CSS formatting for both direct ID rules and media query wrapped ID rules

This resolves issues where media queries containing ID selectors were not being processed correctly due to incomplete bracket matching.

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