Skip to content

Commit 372f85c

Browse files
committed
[typed-om] Use default-value syntax, rather than doing the default manually in prose. Fixes #665.
1 parent 189af7a commit 372f85c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

css-typed-om/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ interface CSSUnparsedValue : CSSStyleValue {
644644
typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment;
645645

646646
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet),
647-
Constructor(USVString variable, optional CSSUnparsedValue? fallback)]
647+
Constructor(USVString variable, optional CSSUnparsedValue? fallback = null)]
648648
interface CSSVariableReferenceValue {
649649
attribute USVString variable;
650650
readonly attribute CSSUnparsedValue? fallback;
@@ -719,8 +719,7 @@ of the {{CSSUnparsedValue/[[tokens]]}} internal slot.
719719
with its {{CSSVariableReferenceValue/variable}} internal slot
720720
set to |variable|
721721
and its {{CSSVariableReferenceValue/fallback}} internal slot
722-
set to |fallback| (if passed)
723-
or `null` otherwise.
722+
set to |fallback|.
724723
</div>
725724

726725

0 commit comments

Comments
 (0)