Skip to content

Commit fcb5864

Browse files
committed
[css-typed-om] Finish computed CSSStyleValue objects section.
(w3c#156)
1 parent e9f3e56 commit fcb5864

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

css-typed-om/Overview.bs

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,38 @@ and renormalized (e.g. the color ''red'').
12761276
Computed {{CSSNumberValue}} objects {#computed-numbervalue-objects}
12771277
------------------------------------------------------------------
12781278

1279-
During computation, {{CSSNumberValue}} objects are range-restricted as appropriate
1280-
to the relevant property, but otherwise left unaltered.
1279+
During computation, {{CSSNumberValue}} objects are range-restricted or rounded as
1280+
appropriate to the relevant property, but otherwise left unaltered (see the example
1281+
in <a section href='#numbervalue-objects'></a>).
1282+
1283+
Computed {{CSSLengthValue}} objects {#computed-lengthvalue-objects}
1284+
-------------------------------------------------------------------
1285+
1286+
During computation, {{CSSLengthValue}} objects are reduced to combinations of
1287+
pixel and percentage values by the standard length computation process described
1288+
as part of the <<length>> type. Lengths may then be further range-restricted as appropriate
1289+
(for example, 'border-left-width' requires non-negative lengths).
1290+
1291+
Note that lengths combining percentage and pixel units can't in general be
1292+
range restricted (e.g. is 100px - 50% greater or less than zero?).
1293+
1294+
Computed {{CSSAngleValue}} objects {#computed-anglevalue-objects}
1295+
----------------------------------------------------------------
1296+
1297+
{{CSSAngleValue}} objects are not modified during computation.
1298+
1299+
Computed {{CSSTransformValue}} objects {#computed-transformvalue-objects}
1300+
-------------------------------------------------------------------------
1301+
1302+
During computation, any {{CSSLengthValue}} objects referenced by a {{CSSTransformComponent}}
1303+
(e.g. the <a attribute for=CSSTranslation>x</a> attribute of a {{CSSTranslation}}) are
1304+
computed according to <a section href='#computed-lengthvalue-objects'></a>, but the
1305+
{{CSSTransformValue}} object is otherwise left unaltered.
1306+
1307+
Computed {{CSSPositionValue}} objects {#computed-positionvalue-objects}
1308+
-----------------------------------------------------------------------
1309+
1310+
During computation, both the <a attribute for=CSSPositionValue>x</a> and
1311+
<a attribute for=CSSPositionValue>y</a> components of a {{CSSPositionValue}} are
1312+
computed according to <a section href='#computed-lengthvalue-objects'></a>.
12811313

1282-
Issue(156): Finish me.

0 commit comments

Comments
 (0)