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 <position> value, i.e. a coordinate for properties like | 5 // Represents a <position> value, i.e. a coordinate for properties like |
6 // background-position. | 6 // background-position. |
7 // Spec: https://drafts.css-houdini.org/css-typed-om/#positionvalue-objects | 7 // Spec: https://drafts.css-houdini.org/css-typed-om/#positionvalue-objects |
8 [ | 8 [ |
9 Constructor(CSSLengthValue x, CSSLengthValue y), | 9 Constructor(CSSNumericValue x, CSSNumericValue y), |
10 Exposed=(Window,PaintWorklet), | 10 Exposed=(Window,PaintWorklet), |
11 RuntimeEnabled=CSSTypedOM | 11 RuntimeEnabled=CSSTypedOM |
12 ] interface CSSPositionValue : CSSStyleValue { | 12 ] interface CSSPositionValue : CSSStyleValue { |
13 readonly attribute CSSLengthValue x; | 13 readonly attribute CSSNumericValue x; |
14 readonly attribute CSSLengthValue y; | 14 readonly attribute CSSNumericValue y; |
15 }; | 15 }; |
OLD | NEW |