Skip to content

Commit 85b70b6

Browse files
committed
[css-transforms-2] Add 'none' value to the individual transforms. Fixes w3c#244.
1 parent ba3c43d commit 85b70b6

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

css-transforms-2/Overview.bs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Fluff here.
3737

3838
<pre class="propdef">
3939
Name: translate
40-
Value: <<length-percentage>> [ <<length-percentage>> <<length>>? ]?
41-
Initial: 0
40+
Value: none | <<length-percentage>> [ <<length-percentage>> <<length>>? ]?
41+
Initial: none
4242
Inherited: no
4343
Percentages: relative to the width of the containing block (for the first value) or the height (for the second value)
4444
Media: visual
@@ -48,17 +48,17 @@ Animatable: as <<length>> or <<percentage>> list
4848

4949
<pre class="propdef">
5050
Name: rotate
51-
Value: <<number>>{3}? <<angle>>
52-
Initial: 0deg
51+
Value: none | <<number>>{3}? <<angle>>
52+
Initial: none
5353
Inherited: no
5454
Media: visual
5555
Animatable: as SLERP
5656
</pre>
5757

5858
<pre class="propdef">
5959
Name: scale
60-
Value: <<number>>{1,3}
61-
Initial: 1
60+
Value: none | <<number>>{1,3}
61+
Initial: none
6262
Inherited: no
6363
Media: visual
6464
Animatable: as <<number>> list
@@ -88,6 +88,17 @@ each specifying a scale along one axis,
8888
in order X, Y, then Z.
8989
Unspecified scales default to ''1''.
9090

91+
All three properties accept
92+
(and default to)
93+
the value <dfn value for="translate, rotate, scale">none</dfn>,
94+
which produces no transform at all.
95+
In particular,
96+
this value does <em>not</em> trigger the creation of a stacking context,
97+
while all other values
98+
(including identity transforms like ''translate: 0px'')
99+
create a stacking context,
100+
per usual for transforms.
101+
91102

92103
Current Transformation Matrix {#ctm}
93104
====================================

0 commit comments

Comments
 (0)