@@ -478,7 +478,8 @@ interface CSSScale : CSSTransformComponent {
478
478
readonly attribute double z;
479
479
};
480
480
481
- [Constructor(double ax, double ay)]
481
+ [Constructor(double dx, double dy),
482
+ Constructor(CSSAngleValue ax, CSSAngleValue ay)]
482
483
interface CSSSkew : CSSTransformComponent {
483
484
readonly attribute double ax;
484
485
readonly attribute double ay;
@@ -518,14 +519,21 @@ and y & z values of 0 could be:
518
519
</div>
519
520
520
521
When a {{CSSRotation}} is constructed with a double (as opposed to a
521
- {{CSSAngleValue}} ), the angle is taken to be in degrees.
522
+ {{CSSAngleValue}} ), the angle is taken to be in degrees. Likewise, when
523
+ {{CSSSkew}} is constructed with doubles, both arguments are taken to be angles
524
+ in degrees.
522
525
523
526
<div class=note>
524
527
The following two CSSRotations are equivalent:
525
528
<pre class='lang-javascript'>
526
529
CSSRotation(angle);
527
530
CSSRotation(CSSAngleValue(angle, "deg"));
528
531
</pre>
532
+ Likewise, the following two CSSSkews are equivalent:
533
+ <pre class='lang-javascript'>
534
+ CSSSkew(ax, ay);
535
+ CSSSkew(CSSAngleValue(ax, "deg"), CSSAngleValue(ay, "deg"));
536
+ </pre>
529
537
</div>
530
538
531
539
When a {{CSSTransformValue}} is read from a {{StylePropertyMap}} , each
0 commit comments