Skip to content

Commit 6ad488d

Browse files
nainarshans
authored andcommitted
[Typed OM] Add example for CSSTransformValue normalization (w3c#298)
* add example for CSSTransformValue * use a tags
1 parent bac793d commit 6ad488d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-typed-om/Overview.bs

+13
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,19 @@ then a {{CSSTransformValue}} is constructed around an empty sequence.
857857

858858
Otherwise, normalization fails.
859859

860+
<div class='example'>
861+
The string "scale(2, 0.5) translate(100px) rotate(20deg)"
862+
is converted into a {{CSSTransformValue}} that contains a list of {{CSSTransformComponent}} with:
863+
* a {{CSSScale}} with:
864+
* <a attribute for='CSSScale'>x</a> set to 2
865+
* <a attribute for='CSSScale'>y</a> set to 0.5
866+
* a {{CSSTranslation}} with:
867+
* <a attribute for='CSSTranslation'>x</a> with <a attribute for='CSSSimpleLength'>value</a> of 100 and <a attribute for='CSSSimpleLength'>type</a> of "px"
868+
* a {{CSSRotation}} with:
869+
* 20 <a attribute for='CSSAngleValue'>degrees</a>
870+
871+
</div>
872+
860873
{{CSSPositionValue}} normalization {#positionvalue-normalization}
861874
-----------------------------------------------------------------
862875

0 commit comments

Comments
 (0)