// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Represents an hwb color.
// https://drafts.css-houdini.org/css-typed-om-1/#csshwb
[
Exposed = (Window, LayoutWorklet, PaintWorklet), RuntimeEnabled =
CSSColorTypedOM
] interface CSSHWB : CSSColorValue {
[RaisesException] constructor(CSSNumericValue h, CSSNumberish w,
CSSNumberish b,
optional CSSNumberish alpha = 1);
[RaisesException = Setter] attribute CSSNumericValue h;
[RaisesException = Setter] attribute CSSNumberish w;
[RaisesException = Setter] attribute CSSNumberish b;
[RaisesException = Setter] attribute CSSNumberish alpha;
};