CSS Code Style - Using an unit for value 0

Hello all,

I’ve added a new rule to our CSS Code Style:

  • the unit must be omitted when the value is zero (i.e., width: 0; is ok, and width: 0em; is not)

My motivations are that:

  • we need a rule to avoid discussing this again on PRs
  • the unit is optional and does not bring information when the value is 0
  • this is the most concise notation

WDTY?

+1

ok for me, thanks

+1, I think we applied this already in most of the places, at least on my side.

Documented in HTML & CSS Code Style - XWiki