From 2dcaf502526f6ec0d1064d71a1ef1ba85ecfbbf0 Mon Sep 17 00:00:00 2001 From: Tony Ruscoe Date: Thu, 13 Jan 2022 13:53:15 +0000 Subject: [PATCH] Prefer leading zeros in CSS values This was reversed in the internal style guide a while ago to align the guidance with our autoformatting tooling configuration. Any optimisations to reduce file size should be handled by compilers and minifiers. --- htmlcssguide.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htmlcssguide.html b/htmlcssguide.html index 7b6074c..8293303 100644 --- a/htmlcssguide.html +++ b/htmlcssguide.html @@ -592,11 +592,11 @@ padding: 0;

Leading 0s

-

Omit leading “0”s in values.

+

Always include leading “0”s in values.

-

Do not put 0s in front of values or lengths between -1 and 1.

+

Put 0s in front of values or lengths between -1 and 1.

-
font-size: .8em;
+
font-size: 0.8em;
 

Hexadecimal Notation