blob: 6d12b1dd02db1c5e1b89edce892442d1eba626fd [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 <position> value, i.e. a coordinate for properties like
// background-position.
// Spec: https://drafts.css-houdini.org/css-typed-om/#positionvalue-objects
[
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSPositionValue : CSSStyleValue {
[RaisesException] constructor(CSSNumericValue x, CSSNumericValue y);
[RaisesException=Setter] attribute CSSNumericValue x;
[RaisesException=Setter] attribute CSSNumericValue y;
};