blob: 3954abba2d5f089e618603dd0de084502a314942 [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
[
Constructor(CSSNumericValue x, CSSNumericValue y),
Exposed=(Window,LayoutWorklet,PaintWorklet),
RaisesException=Constructor
] interface CSSPositionValue : CSSStyleValue {
[RaisesException=Setter] attribute CSSNumericValue x;
[RaisesException=Setter] attribute CSSNumericValue y;
};