rtfeldman / elm-css

Typed CSS in Elm.
https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
BSD 3-Clause "New" or "Revised" License
1.23k stars 196 forks source link

Duplicate inline styles? #574

Open TheOddler opened 2 years ago

TheOddler commented 2 years ago

I have a list of elements, each with the same style. And it seems the style is generated once for each, but they get the same class-name, and are applied to all elements:

image

So the element has the style ._21e74195 applied to it multiple times.

This means, that if I uncheck one of the rules, the next iteration of it takes over, which makes debugging the css very annoying. For example, in the next picture I disabled the margin on the first iteration, but then it just takes the same margin from the next one.

image

Is this a bug? Or am I doing something wrong?