Skip to content

Commit 6ee836f

Browse files
committed
[css-properties-and-values] Added <length-percentage> computation
rules.
1 parent d4a272e commit 6ee836f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css-properties-values-api/Overview.bs

+8
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ described in [[!css3-values]] and [[!css-cascade-4]] respectively. Otherwise:
270270

271271
For &lt;length> values, the computed value is the absolute length expressed in pixels.
272272

273+
For &lt;length-percentage> values, the computed value is one of the following:
274+
* if the specified value contains only length units, the computed value is the absolute length
275+
expressed in pixels.
276+
* if the specified value contains only percentages, the computed value is a
277+
simple percentage.
278+
* otherwise, the computed value is a calc expression containing an absolute
279+
length expressed in pixels, and a percentage value.
280+
273281
For &lt;custom-ident>, string, &lt;color>, &lt;image>, &lt;url>, &lt;integer>,
274282
&lt;angle>, &lt;time>, &lt;resolution>, &lt;transform-function> or "*" values, the
275283
computed value is identical to the specified value.

0 commit comments

Comments
 (0)