chromium/third_party/blink/renderer/core/css/cssom/css_rgb.idl

// Copyright 2021 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 RGB color.
// Spec: https://drafts.css-houdini.org/css-typed-om-1/#cssrgb
[
    Exposed=(Window,LayoutWorklet,PaintWorklet),
    RuntimeEnabled=CSSColorTypedOM
] interface CSSRGB : CSSColorValue {
    [RaisesException] constructor(CSSNumberish r, CSSNumberish g, CSSNumberish b, optional CSSNumberish alpha = 1);
    [RaisesException=Setter] attribute CSSNumberish r;
    [RaisesException=Setter] attribute CSSNumberish g;
    [RaisesException=Setter] attribute CSSNumberish b;
    [RaisesException=Setter] attribute CSSNumberish alpha;
};