Skip to content

Commit 2dcaf50

Browse files
authored
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.
1 parent 50c42bf commit 2dcaf50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

htmlcssguide.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,11 @@ <h4 id="0_and_Units" class="numbered">0 and Units</h4>
592592

593593
<h4 id="Leading_0s" class="numbered">Leading 0s</h4>
594594

595-
<p>Omit leading “0”s in values.</p>
595+
<p>Always include leading “0”s in values.</p>
596596

597-
<p>Do not put <code>0</code>s in front of values or lengths between -1 and 1.</p>
597+
<p>Put <code>0</code>s in front of values or lengths between -1 and 1.</p>
598598

599-
<pre><code class="language-css good">font-size: .8em;
599+
<pre><code class="language-css good">font-size: 0.8em;
600600
</code></pre>
601601

602602
<h4 id="Hexadecimal_Notation" class="numbered">Hexadecimal Notation</h4>

0 commit comments

Comments
 (0)