From f3f40ae32ff3ee487dd5a36a06272e4d7d031838 Mon Sep 17 00:00:00 2001 From: Anders Hartvoll Ruud Date: Mon, 20 Apr 2020 15:11:43 +0200 Subject: [PATCH] [css-properties-values-api] Fix initial-value serialization - 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. --- css-properties-values-api/Overview.bs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/css-properties-values-api/Overview.bs b/css-properties-values-api/Overview.bs index a25d5b95..b2265fa3 100644 --- a/css-properties-values-api/Overview.bs +++ b/css-properties-values-api/Overview.bs @@ -1179,11 +1179,10 @@ the following: :: The string "false" followed by a single SEMICOLON (U+003B), followed by a SPACE (U+0020). - 8. If the rule's 'initialValue' is present, follow these substeps: - 1. The string "initialValue:" followed by a single - SPACE (U+0020). + 8. If the rule's 'initial-value' is present, follow these substeps: + 1. The string "initial-value:". 2. The result of performing serialize a CSS value in the rule's - 'initialValue' followed by a single SEMICOLON (U+003B), followed by + 'initial-value' followed by a single SEMICOLON (U+003B), followed by a SPACE (U+0020). 9. A single RIGHT CURLY BRACKET (U+007D).