W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

[csswg-drafts] [css-transforms] Keywords for `transform`

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 Jan 2017 16:59:23 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-201072286-1484585962-sysbot+gh@w3.org>
Crissov has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-transforms] Keywords for `transform` ==
The 
[`transform`](https://drafts.csswg.org/css-transforms/#propdef-transform)
 property currently accepts `none` or a list of [transform 
functions](https://drafts.csswg.org/css-transforms/#typedef-transform-function).
 I beleive it would make sense to add some keywords for common use 
cases. This could make code more readable especially for beginners and
 math-illiterates.

| Keyword | Equivalent function |
|----------|--------------------|
| `flip-vertical` | `scale(1, -1)` |
| `flip-horizontal` | `scale(-1, 1)` |
| `mirror` | flip in writing direction? |
| `rotate` | `rotate(0.5turn)` |
| `rotate-clockwise` | `rotate(0.25turn)` |
| `rotate-anticlockwise` | `rotate(0.75turn)` |
| … | … |

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/944 using your GitHub 
account
Received on Monday, 16 January 2017 16:59:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:07 UTC