Skip to content

Warns incorrectly on CSS attribute selector case sensitivity flag #1397

@adamwathan

Description

@adamwathan

Given this CSS:

[type="A" s] {
  color:  black;
}

esbuild warns with:

 > in.css:1:10: warning: Expected "]" but found "s"
    1 │ [type="A" s] {
      ╵           ^

 > in.css:1:11: warning: Unexpected "]"
    1 │ [type="A" s] {

This is actually valid, and is a newer flag similar to the existing i flag which esbuild seems to handle and does not warn about:

https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#html_ordered_lists

Thanks so much for your work on this amazing tool, and for Figma! 😍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions