Document rem as CSS unit

This commit is contained in:
Matthias Clasen 2016-02-05 06:53:11 +01:00
parent 680ec087ab
commit f60e144038

View File

@ -53,7 +53,7 @@ We use <literallayout> for syntax productions, and each line is put in a <code>
The following basic datatypes are used throughout:
</para>
<literallayout><code>〈length〉 = 〈number〉 [ px | pt | em | ex | pc | in | cm | mm ]</code>
<literallayout><code>〈length〉 = 〈number〉 [ px | pt | em | ex |rem | pc | in | cm | mm ]</code>
<code>〈percentage〉 = 〈number〉 %</code>
<code>〈angle〉 = 〈number〉 [ deg | grad | turn ]</code>
<code>〈time〉 = 〈number〉 [ s | ms ]</code>
@ -65,6 +65,11 @@ We use <literallayout> for syntax productions, and each line is put in a <code>
which case they are resolved using the inherited font size value.
</para>
<para>
The rem unit is resolved using the initial font size value, which is
not quite the same as the CSS definition of rem.
</para>
<para>
A common pattern among shorthand properties (called 'four sides') is one
where one to four values can be specified, to determine a value for each