File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -543,9 +543,10 @@ interface CSSUnparsedValue : CSSStyleValue {
543543 getter (DOMString or CSSVariableReferenceValue) (unsigned long index);
544544};
545545
546+ [Constructor(DOMString variable, optional CSSUnparsedValue fallback)]
546547interface CSSVariableReferenceValue {
547548 attribute DOMString variable;
548- attribute CSSUnparsedValue? fallback;
549+ readonly attribute CSSUnparsedValue? fallback;
549550};
550551</pre>
551552
@@ -560,6 +561,19 @@ The <dfn attribute for=CSSUnparsedValue>length</dfn> attribute indicates how man
560561
561562The <dfn for=CSSUnparsedValue>indexed getter</dfn> retrieves the string fragment or variable reference at the provided index.
562563
564+ <div algorithm>
565+ The <dfn constructor for=CSSVariableReferenceValue>CSSVariableReferenceValue(|variable|, |fallback|)</dfn> constructor must,
566+ when called,
567+ perform the following steps:
568+
569+ 1. Return a new {{CSSVariableReferenceValue}}
570+ with its {{CSSVariableReferenceValue/variable}} internal slot
571+ set to |variable|
572+ and its {{CSSVariableReferenceValue/fallback}} internal slot
573+ set to |fallback| (if passed)
574+ or `null` otherwise.
575+ </div>
576+
563577<!--
564578██ ██ ████████ ██ ██ ██ ██ ███████ ████████ ████████
565579██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
You can’t perform that action at this time.
0 commit comments