jorgebucaran / classcat

Build a class attribute string quickly
MIT License
905 stars 22 forks source link

Numbers as CSS classes? #8

Closed jorgebucaran closed 6 years ago

jorgebucaran commented 6 years ago

From the discussion on Reddit.

Curious why you allow number type rather than returning a warning or error or just skipping it.

A class that starts with a number is not valid CSS. However, I think that restriction might be going away in future revisions of the CSS spec. Even so, a number on its own is semantically meaningless without some sort of prefix.

jorgebucaran commented 6 years ago

a5c0e10