Skip to content

fix: invalid @supports statement - #1514

Open
johnjenkins wants to merge 1 commit into
ionic-team:mainfrom
johnjenkins:fix-supports-statement
Open

fix: invalid @supports statement#1514
johnjenkins wants to merge 1 commit into
ionic-team:mainfrom
johnjenkins:fix-supports-statement

Conversation

@johnjenkins

@johnjenkins johnjenkins commented Aug 24, 2026

Copy link
Copy Markdown

Description

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Fixes #1513

Tests or Reproductions

Repro mentioned in #1513

I ran locally to check it now correctly parses:

const { transform } = require('lightningcss');
const fs = require('fs');
const code = fs.readFileSync('/file-to/ionicons/src/components/icon/icon.css');
try {
  transform({ filename: 'icon.css', code });
  console.log('OK: parsed successfully');
} catch (e) {
  console.error('FAIL:', e.message);
  process.exit(1);
}

If you'd like a test committed, lemme know :)

Screenshots / Media

Platforms Affected

  • Android
  • iOS
  • Web

Notes / Comments

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.

bug: Invalid @supports syntax in icon.css breaks under strict CSS parsers (e.g. Lightning CSS)

1 participant