blob: 51f2ce9e6defe04f5f5c9596f8dc4288ade8a71c [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/#csstranslate
[
Constructor(CSSNumericValue x, CSSNumericValue y,
optional CSSNumericValue z),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSTranslate : CSSTransformComponent {
[RaisesException=Setter] attribute CSSNumericValue x;
[RaisesException=Setter] attribute CSSNumericValue y;
[RaisesException=Setter] attribute CSSNumericValue z;
};