Skip to content

[Typed OM] Add example for CSSTransformValue normalization #298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,19 @@ then a {{CSSTransformValue}} is constructed around an empty sequence.

Otherwise, normalization fails.

<div class='example'>
The string "scale(2, 0.5) translate(100px) rotate(20deg)"
is converted into a {{CSSTransformValue}} that contains a list of {{CSSTransformComponent}} with:
* a {{CSSScale}} with:
* <a attribute for='CSSScale'>x</a> set to 2
* <a attribute for='CSSScale'>y</a> set to 0.5
* a {{CSSTranslation}} with:
* <a attribute for='CSSTranslation'>x</a> with <a attribute for='CSSSimpleLength'>value</a> of 100 and <a attribute for='CSSSimpleLength'>type</a> of "px"
* a {{CSSRotation}} with:
* 20 <a attribute for='CSSAngleValue'>degrees</a>

</div>

{{CSSPositionValue}} normalization {#positionvalue-normalization}
-----------------------------------------------------------------

Expand Down