mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Document rem as CSS unit
This commit is contained in:
parent
680ec087ab
commit
f60e144038
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user