blob: 3d66384aa22dc3fc18f3cc37afce212cd195d986 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Represents a translation value in a CSSTransformValue used for properties
// like "transform".
// Spec: https://drafts.css-houdini.org/css-typed-om/#csstranslation
[
Constructor(CSSNumericValue x, CSSNumericValue y),
Constructor(CSSNumericValue x, CSSNumericValue y, CSSNumericValue z),
Exposed=(Window,PaintWorklet),
RaisesException=Constructor,
RuntimeEnabled=CSSTypedOM
] interface CSSTranslation : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue x;
[RaisesException=Setter] attribute CSSNumericValue y;
[RaisesException=Setter] attribute CSSNumericValue z;
};