| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Represents a translation value in a CSSTransformValue used for properties | 5 // Represents a translation value in a CSSTransformValue used for properties |
| 6 // like "transform". | 6 // like "transform". |
| 7 // Spec: https://drafts.css-houdini.org/css-typed-om/#csstranslation | 7 // Spec: https://drafts.css-houdini.org/css-typed-om/#csstranslation |
| 8 [ | 8 [ |
| 9 Constructor(CSSLengthValue x, CSSLengthValue y), | 9 Constructor(CSSNumericValue x, CSSNumericValue y), |
| 10 Constructor(CSSLengthValue x, CSSLengthValue y, CSSLengthValue z), | 10 Constructor(CSSNumericValue x, CSSNumericValue y, CSSNumericValue z), |
| 11 Exposed=(Window,PaintWorklet), | 11 Exposed=(Window,PaintWorklet), |
| 12 RaisesException=Constructor, | 12 RaisesException=Constructor, |
| 13 RuntimeEnabled=CSSTypedOM | 13 RuntimeEnabled=CSSTypedOM |
| 14 ] interface CSSTranslation : CSSTransformComponent { | 14 ] interface CSSTranslation : CSSTransformComponent { |
| 15 readonly attribute CSSLengthValue x; | 15 readonly attribute CSSNumericValue x; |
| 16 readonly attribute CSSLengthValue y; | 16 readonly attribute CSSNumericValue y; |
| 17 readonly attribute CSSLengthValue z; | 17 readonly attribute CSSNumericValue z; |
| 18 }; | 18 }; |
| OLD | NEW |