blob: 33c7adb9df920d9073d6865ac3a228e65f3c460a [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
[
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSTranslate : CSSTransformComponent {
[RaisesException] constructor(CSSNumericValue x, CSSNumericValue y,
optional CSSNumericValue z);
[RaisesException=Setter] attribute CSSNumericValue x;
[RaisesException=Setter] attribute CSSNumericValue y;
[RaisesException=Setter] attribute CSSNumericValue z;
};