Skip to content

Commit bf463bd

Browse files
[scroll-animations-1] Update serialization of CSSScrollTimelineRule. (w3c#6410)
Updates serialization of CSSScrollTimelineRule to remove references to obsolete fields and serialize new fields on the timeline.
1 parent 1bf3f84 commit bf463bd

1 file changed

Lines changed: 12 additions & 29 deletions

File tree

scroll-animations-1/Overview.bs

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,37 +1053,20 @@ interface CSSScrollTimelineRule : CSSRule {
10531053
on the value of the 'orientation' descriptor,
10541054
followed by a SEMICOLON (U+003B),
10551055
followed by a SPACE (U+0020).
1056-
1. If the 'start' descriptor is missing, the empty string.
1057-
Otherwise, the concatenation of the following:
1058-
1. The string <code>"start:"</code>,
1059-
followed by a SPACE (U+0020).
1060-
1. The result of performing <a>serialize a scroll timeline offset</a>
1061-
on the rule's 'start' descriptor,
1056+
1. If the 'scrollOffsets' descriptor is missing, the empty string.
1057+
Otherwise, the concatenation of the following:
1058+
1. The string <code>"scrollOffsets:"</code>,
1059+
followed by a SPACE (U+0020),
1060+
followed by a LEFT SQUARE BRACKET (U+005B).
1061+
1. For each value in the list for the rule's 'scroll-offsets'
1062+
descriptor:
1063+
1. The result of performing
1064+
<a>serialize a scroll timeline offset</a> on the value.
1065+
1. If not the last value,
1066+
A COMMA (U+002C), followed by a SPACE (U+0020).
1067+
1. A RIGHT SQUARE BRACKET (U+005D),
10621068
followed by a SEMICOLON (U+003B),
10631069
followed by a SPACE (U+0020).
1064-
1. If the 'end' descriptor is missing, the empty string.
1065-
Otherwise, the concatenation of the following:
1066-
1. The string <code>"end:"</code>,
1067-
followed by a SPACE (U+0020).
1068-
1. The result of performing <a>serialize a scroll timeline offset</a>
1069-
on the rule's 'end' descriptor,
1070-
followed by a SEMICOLON (U+003B),
1071-
followed by a SPACE (U+0020).
1072-
1. If the 'time-range' descriptor is missing, the empty string.
1073-
Otherwise, the concatenation of the following:
1074-
1. The string <code>"time-range:"</code>,
1075-
followed by a SPACE (U+0020).
1076-
1. One of the following,
1077-
depending on the value of the 'time-range' descriptor:
1078-
<dl class=switch>
1079-
: an identifier
1080-
:: The result of performing <a>serialize an identifier</a>
1081-
on that identifier.
1082-
: &lt;time>
1083-
:: The result of performing <a>serialize a CSS component value</a>
1084-
on that value.
1085-
</dl>
1086-
1. A single SEMICOLON (U+003B), followed by a SPACE (U+0020).
10871070
1. A single RIGHT CURLY BRACKET (U+007D).
10881071
</div>
10891072

0 commit comments

Comments
 (0)