blob: b0be5d7bdfd920ed756ae39fcc615d06fe18953b [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, CSSOMString unit),
RaisesException=Constructor,
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnitValue : CSSNumericValue {
attribute double value;
readonly attribute CSSOMString unit;
};