phax / ph-css

Advanced Java CSS 3 parser and builder
Apache License 2.0
153 stars 23 forks source link

Support `@supports` #90

Open nafg opened 1 year ago

nafg commented 1 year ago

Parsing https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.1/dist/semantic.css fails with

ERROR com.helger.css.handler.LoggingCSSParseExceptionCallback - Failed to parse CSS: [36251:11] Encountered text 'selector(' corresponding to token <FUNCTION>. Was expecting one of: <S>, "(", "not"

At line 36251 is

@supports selector(:has(.f)) {
  .ui.icon.input:not([class*="left icon"]) > .ui.dropdown > .dropdown.icon {
    padding-right: initial;
  }

  .ui.icon.input:not([class*="left icon"]):not(:has(.ui.dropdown ~ input)) > .ui.dropdown > .dropdown.icon {
    padding-right: 2.5em;
  }
}
stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.