// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: CSS Typed OM Level 1 (https://drafts.css-houdini.org/css-typed-om-1/) [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSStyleValue { stringifier; [Exposed=Window] static CSSStyleValue parse(USVString property, USVString cssText); [Exposed=Window] static sequence parseAll(USVString property, USVString cssText); }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface StylePropertyMapReadOnly { iterable>; (undefined or CSSStyleValue) get(USVString property); sequence getAll(USVString property); boolean has(USVString property); readonly attribute unsigned long size; }; [Exposed=Window] interface StylePropertyMap : StylePropertyMapReadOnly { undefined set(USVString property, (CSSStyleValue or USVString)... values); undefined append(USVString property, (CSSStyleValue or USVString)... values); undefined delete(USVString property); undefined clear(); }; partial interface Element { [SameObject] StylePropertyMapReadOnly computedStyleMap(); }; partial interface CSSStyleRule { [SameObject] readonly attribute StylePropertyMap styleMap; }; partial interface mixin ElementCSSInlineStyle { [SameObject] readonly attribute StylePropertyMap attributeStyleMap; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSUnparsedValue : CSSStyleValue { constructor(sequence members); iterable; readonly attribute unsigned long length; getter CSSUnparsedSegment (unsigned long index); setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val); }; typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSVariableReferenceValue { constructor(USVString variable, optional CSSUnparsedValue? fallback = null); attribute USVString variable; readonly attribute CSSUnparsedValue? fallback; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSKeywordValue : CSSStyleValue { constructor(USVString value); attribute USVString value; }; typedef (DOMString or CSSKeywordValue) CSSKeywordish; typedef (double or CSSNumericValue) CSSNumberish; enum CSSNumericBaseType { "length", "angle", "time", "frequency", "resolution", "flex", "percent", }; dictionary CSSNumericType { long length; long angle; long time; long frequency; long resolution; long flex; long percent; CSSNumericBaseType percentHint; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSNumericValue : CSSStyleValue { CSSNumericValue add(CSSNumberish... values); CSSNumericValue sub(CSSNumberish... values); CSSNumericValue mul(CSSNumberish... values); CSSNumericValue div(CSSNumberish... values); CSSNumericValue min(CSSNumberish... values); CSSNumericValue max(CSSNumberish... values); boolean equals(CSSNumberish... value); CSSUnitValue to(USVString unit); CSSMathSum toSum(USVString... units); CSSNumericType type(); [Exposed=Window] static CSSNumericValue parse(USVString cssText); }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSUnitValue : CSSNumericValue { constructor(double value, USVString unit); attribute double value; readonly attribute USVString unit; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathValue : CSSNumericValue { readonly attribute CSSMathOperator operator; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathSum : CSSMathValue { constructor(CSSNumberish... args); readonly attribute CSSNumericArray values; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathProduct : CSSMathValue { constructor(CSSNumberish... args); readonly attribute CSSNumericArray values; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathNegate : CSSMathValue { constructor(CSSNumberish arg); readonly attribute CSSNumericValue value; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathInvert : CSSMathValue { constructor(CSSNumberish arg); readonly attribute CSSNumericValue value; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathMin : CSSMathValue { constructor(CSSNumberish... args); readonly attribute CSSNumericArray values; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathMax : CSSMathValue { constructor(CSSNumberish... args); readonly attribute CSSNumericArray values; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSMathClamp : CSSMathValue { constructor(CSSNumberish lower, CSSNumberish value, CSSNumberish upper); readonly attribute CSSNumericValue lower; readonly attribute CSSNumericValue value; readonly attribute CSSNumericValue upper; }; [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)] interface CSSNumericArray { iterable; readonly attribute unsigned long length; getter CSSNumericValue (unsigned long index); }; enum CSSMathOperator { "sum", "product", "negate", "invert", "min", "max", "clamp", }; partial namespace CSS { CSSUnitValue number(double value); CSSUnitValue percent(double value); // CSSUnitValue cap(double value); CSSUnitValue ch(double value); CSSUnitValue em(double value); CSSUnitValue ex(double value); CSSUnitValue ic(double value); CSSUnitValue lh(double value); CSSUnitValue rcap(double value); CSSUnitValue rch(double value); CSSUnitValue rem(double value); CSSUnitValue rex(double value); CSSUnitValue ric(double value); CSSUnitValue rlh(double value); CSSUnitValue vw(double value); CSSUnitValue vh(double value); CSSUnitValue vi(double value); CSSUnitValue vb(double value); CSSUnitValue vmin(double value); CSSUnitValue vmax(double value); CSSUnitValue svw(double value); CSSUnitValue svh(double value); CSSUnitValue svi(double value); CSSUnitValue svb(double value); CSSUnitValue svmin(double value); CSSUnitValue svmax(double value); CSSUnitValue lvw(double value); CSSUnitValue lvh(double value); CSSUnitValue lvi(double value); CSSUnitValue lvb(double value); CSSUnitValue lvmin(double value); CSSUnitValue lvmax(double value); CSSUnitValue dvw(double value); CSSUnitValue dvh(double value); CSSUnitValue dvi(double value); CSSUnitValue dvb(double value); CSSUnitValue dvmin(double value); CSSUnitValue dvmax(double value); CSSUnitValue cqw(double value); CSSUnitValue cqh(double value); CSSUnitValue cqi(double value); CSSUnitValue cqb(double value); CSSUnitValue cqmin(double value); CSSUnitValue cqmax(double value); CSSUnitValue cm(double value); CSSUnitValue mm(double value); CSSUnitValue Q(double value); CSSUnitValue in(double value); CSSUnitValue pt(double value); CSSUnitValue pc(double value); CSSUnitValue px(double value); // CSSUnitValue deg(double value); CSSUnitValue grad(double value); CSSUnitValue rad(double value); CSSUnitValue turn(double value); //