biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

Home Page:https://biomejs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

đź“ť CSS formatter converts custom identifiers to lowercase

joshwooding opened this issue · comments

Potentially related issue/solution: #3068

@ematipico

Hmm,

I’m not sure that this is the best or easiest solution here. I think we have two ways to solve it:

  1. Don’t change the case at all.
  2. Change the case only for reserved words. However, to achieve this, we have to know all of them inside the parser/formatter.

Don’t change the case at all.

Maybe we should evaluate this solution. The formatter doesn't have any semantic knowledge of the document, so I suppose any "unknown" things should be left untouched.