blob: c00d6c4dc421876ec8f4008e9d8030ba09b9d85b [file] [log] [blame]
// Copyright 2017 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 numeric values that can be expressed as a single number plus a
// unit (or a naked number or percentage).
// https://drafts.css-houdini.org/css-typed-om/#cssunitvalue
[
Constructor(double value, DOMString unit),
RaisesException=Constructor,
Exposed=(Window,PaintWorklet),
RuntimeEnabled=CSSTypedOM
] interface CSSUnitValue : CSSNumericValue {
[EnforceRange] attribute double value;
[RaisesException=Setter] attribute DOMString unit;
readonly attribute DOMString type;
};