@@ -464,9 +464,7 @@ interface CSSTranslation : CSSTransformComponent {
464
464
readonly attribute CSSLengthValue z;
465
465
};
466
466
467
- [Constructor(double degrees),
468
- Constructor(CSSAngleValue angle),
469
- Constructor(double x, double y, double z, double degrees),
467
+ [Constructor(CSSAngleValue angle),
470
468
Constructor(double x, double y, double z, CSSAngleValue angle)]
471
469
interface CSSRotation : CSSTransformComponent {
472
470
readonly attribute double x;
@@ -483,8 +481,7 @@ interface CSSScale : CSSTransformComponent {
483
481
readonly attribute double z;
484
482
};
485
483
486
- [Constructor(double dx, double dy),
487
- Constructor(CSSAngleValue ax, CSSAngleValue ay)]
484
+ [Constructor(CSSAngleValue ax, CSSAngleValue ay)]
488
485
interface CSSSkew : CSSTransformComponent {
489
486
readonly attribute CSSAngleValue ax;
490
487
readonly attribute CSSAngleValue ay;
@@ -523,24 +520,6 @@ and y & z values of 0 could be:
523
520
524
521
</div>
525
522
526
- When a {{CSSRotation}} is constructed with a double (as opposed to a
527
- {{CSSAngleValue}} ), the angle is taken to be in degrees. Likewise, when
528
- {{CSSSkew}} is constructed with doubles, both arguments are taken to be angles
529
- in degrees.
530
-
531
- <div class=note>
532
- The following two CSSRotations are equivalent:
533
- <pre class='lang-javascript'>
534
- CSSRotation(angle);
535
- CSSRotation(CSSAngleValue(angle, "deg"));
536
- </pre>
537
- Likewise, the following two CSSSkews are equivalent:
538
- <pre class='lang-javascript'>
539
- CSSSkew(ax, ay);
540
- CSSSkew(CSSAngleValue(ax, "deg"), CSSAngleValue(ay, "deg"));
541
- </pre>
542
- </div>
543
-
544
523
When a {{CSSTransformValue}} is read from a {{StylePropertyMap}} , each
545
524
{{CSSTransformComponent}} will maintain the relevant transform function in
546
525
its <code> cssText</code> attribute. However, newly constructed {{CSSTransformValue}} s
0 commit comments