File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -543,9 +543,10 @@ interface CSSUnparsedValue : CSSStyleValue {
543
543
getter (DOMString or CSSVariableReferenceValue) (unsigned long index);
544
544
};
545
545
546
+ [Constructor(DOMString variable, optional CSSUnparsedValue fallback)]
546
547
interface CSSVariableReferenceValue {
547
548
attribute DOMString variable;
548
- attribute CSSUnparsedValue? fallback;
549
+ readonly attribute CSSUnparsedValue? fallback;
549
550
};
550
551
</pre>
551
552
@@ -560,6 +561,19 @@ The <dfn attribute for=CSSUnparsedValue>length</dfn> attribute indicates how man
560
561
561
562
The <dfn for=CSSUnparsedValue>indexed getter</dfn> retrieves the string fragment or variable reference at the provided index.
562
563
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
+
563
577
<!--
564
578
██ ██ ████████ ██ ██ ██ ██ ███████ ████████ ████████
565
579
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
You can’t perform that action at this time.
0 commit comments