Skip to content

Commit f4327d2

Browse files
authored
[css-properties-values-api] Fix initial-value serialization (w3c#983)
- Emit 'initial-value', not 'initialValue'. - Do not emit a space after 'initial-value:', since it prepends the space to the initial value when round-tripping.
1 parent 0c80737 commit f4327d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

css-properties-values-api/Overview.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,11 +1179,10 @@ the following:
11791179
:: The string <code>"false"</code> followed by a single
11801180
SEMICOLON (U+003B), followed by a SPACE (U+0020).
11811181
</dl>
1182-
8. If the rule's 'initialValue' is present, follow these substeps:
1183-
1. The string <code>"initialValue:"</code> followed by a single
1184-
SPACE (U+0020).
1182+
8. If the rule's 'initial-value' is present, follow these substeps:
1183+
1. The string <code>"initial-value:"</code>.
11851184
2. The result of performing <a>serialize a CSS value</a> in the rule's
1186-
'initialValue' followed by a single SEMICOLON (U+003B), followed by
1185+
'initial-value' followed by a single SEMICOLON (U+003B), followed by
11871186
a SPACE (U+0020).
11881187
9. A single RIGHT CURLY BRACKET (U+007D).
11891188
</div>

0 commit comments

Comments
 (0)