From d71e167c085a3b5e904b9c5082e1eb614ce74400 Mon Sep 17 00:00:00 2001 From: Kevin Ellis Date: Fri, 25 Jun 2021 10:14:52 -0400 Subject: [PATCH 1/2] Serialize CSSScrollTimelineRule --- scroll-animations-1/Overview.bs | 42 ++++++++++----------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/scroll-animations-1/Overview.bs b/scroll-animations-1/Overview.bs index 6794a2085d2b..e6e7daa151fd 100755 --- a/scroll-animations-1/Overview.bs +++ b/scroll-animations-1/Overview.bs @@ -1053,38 +1053,20 @@ interface CSSScrollTimelineRule : CSSRule { on the value of the 'orientation' descriptor, followed by a SEMICOLON (U+003B), followed by a SPACE (U+0020). - 1. If the 'start' descriptor is missing, the empty string. - Otherwise, the concatenation of the following: - 1. The string "start:", - followed by a SPACE (U+0020). - 1. The result of performing serialize a scroll timeline offset - on the rule's 'start' descriptor, + 1. If the 'scrollOffsets' descriptor is missing, the empty string. + Otherwise, the concatenation of the following: + 1. The string "scrollOffsets:", + followed by a SPACE (U+0020), + followed by a BRACKETLEFT (U+005B). + 1. For each value in the list for the rule's 'scroll-offsets' + descriptor: + 1. The result of performing + serialize a scroll timeline offset on the value. + 1. If not the last value, + A COMMA (U+002C), followed by a SPACE (U+0020). + 1. A BRACKETRIGHT (U+005D), followed by a SEMICOLON (U+003B), followed by a SPACE (U+0020). - 1. If the 'end' descriptor is missing, the empty string. - Otherwise, the concatenation of the following: - 1. The string "end:", - followed by a SPACE (U+0020). - 1. The result of performing serialize a scroll timeline offset - on the rule's 'end' descriptor, - followed by a SEMICOLON (U+003B), - followed by a SPACE (U+0020). - 1. If the 'time-range' descriptor is missing, the empty string. - Otherwise, the concatenation of the following: - 1. The string "time-range:", - followed by a SPACE (U+0020). - 1. One of the following, - depending on the value of the 'time-range' descriptor: -
- : an identifier - :: The result of performing serialize an identifier - on that identifier. - : <time> - :: The result of performing serialize a CSS component value - on that value. -
- 1. A single SEMICOLON (U+003B), followed by a SPACE (U+0020). - 1. A single RIGHT CURLY BRACKET (U+007D).
From dab0d62000bddfa8ebed5413b0c7c807665c777b Mon Sep 17 00:00:00 2001 From: Kevin Ellis Date: Fri, 25 Jun 2021 10:57:57 -0400 Subject: [PATCH 2/2] Cleanup --- scroll-animations-1/Overview.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scroll-animations-1/Overview.bs b/scroll-animations-1/Overview.bs index e6e7daa151fd..571cafa3406a 100755 --- a/scroll-animations-1/Overview.bs +++ b/scroll-animations-1/Overview.bs @@ -1057,16 +1057,17 @@ interface CSSScrollTimelineRule : CSSRule { Otherwise, the concatenation of the following: 1. The string "scrollOffsets:", followed by a SPACE (U+0020), - followed by a BRACKETLEFT (U+005B). + followed by a LEFT SQUARE BRACKET (U+005B). 1. For each value in the list for the rule's 'scroll-offsets' descriptor: 1. The result of performing serialize a scroll timeline offset on the value. 1. If not the last value, A COMMA (U+002C), followed by a SPACE (U+0020). - 1. A BRACKETRIGHT (U+005D), + 1. A RIGHT SQUARE BRACKET (U+005D), followed by a SEMICOLON (U+003B), followed by a SPACE (U+0020). + 1. A single RIGHT CURLY BRACKET (U+007D).