Skip to content

Commit 5ef61ff

Browse files
authored
Merge pull request w3c#280 from rjwright/NoDoubleSkewRotate
[css-typed-om] Remove double constructors for CSSRotation and CSSSkew
2 parents dc51853 + 5355912 commit 5ef61ff

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

css-typed-om/Overview.bs

+2-23
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,7 @@ interface CSSTranslation : CSSTransformComponent {
464464
readonly attribute CSSLengthValue z;
465465
};
466466

467-
[Constructor(double degrees),
468-
Constructor(CSSAngleValue angle),
469-
Constructor(double x, double y, double z, double degrees),
467+
[Constructor(CSSAngleValue angle),
470468
Constructor(double x, double y, double z, CSSAngleValue angle)]
471469
interface CSSRotation : CSSTransformComponent {
472470
readonly attribute double x;
@@ -483,8 +481,7 @@ interface CSSScale : CSSTransformComponent {
483481
readonly attribute double z;
484482
};
485483

486-
[Constructor(double dx, double dy),
487-
Constructor(CSSAngleValue ax, CSSAngleValue ay)]
484+
[Constructor(CSSAngleValue ax, CSSAngleValue ay)]
488485
interface CSSSkew : CSSTransformComponent {
489486
readonly attribute CSSAngleValue ax;
490487
readonly attribute CSSAngleValue ay;
@@ -523,24 +520,6 @@ and y & z values of 0 could be:
523520

524521
</div>
525522

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-
544523
When a {{CSSTransformValue}} is read from a {{StylePropertyMap}}, each
545524
{{CSSTransformComponent}} will maintain the relevant transform function in
546525
its <code>cssText</code> attribute. However, newly constructed {{CSSTransformValue}}s

0 commit comments

Comments
 (0)