Search code examples
cssjsfiddle

Does CSS have a rule against trailing zeros?


Is writing a property in the form width: 90.0%; non-valid CSS, or is that some rule that JSFiddle made up?


Solution

  • According to the CSS BNF (https://www.w3.org/TR/css-syntax-3/) that should be legal.