diff --git a/cssom-view-1/Overview.bs b/cssom-view-1/Overview.bs index 9376d0d3cb2..c0756056a99 100644 --- a/cssom-view-1/Overview.bs +++ b/cssom-view-1/Overview.bs @@ -2354,28 +2354,28 @@ Issue: In what order are scrollend events dispatched? Ordered based on scroll st 1. If target is a {{Document}}, and type is "scroll" or "scrollend", fire an event named type that bubbles at target. 1. Otherwise, if type is "scrollsnapchange", then: - 1. Let |blockTarget| and |inlineTarget| be null initially. - 1. If the scrollsnapchangeTargetBlock associated with target is a pseudo-element, - set |blockTarget| to the owning element of that scrollsnapchangeTargetBlock. - 1. Otherwise, set |blockTarget| to that scrollsnapchangeTargetBlock. - 1. If the scrollsnapchangeTargetInline associated with target is a pseudo-element, - set |inlineTarget| to the owning element of that scrollsnapchangeTargetInline. - 1. Otherwise, Set |inlineTarget| to that scrollsnapchangeTargetInline. - 1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchange}} at target - and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and - {{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget| respectively. - 1. Otherwise, if type is "scrollsnapchanging", then: - 1. Let |blockTarget| and |inlineTarget| be null initially. - 1. If the scrollsnapchanging block-axis target associated with target is a pseudo-element, - set |blockTarget| to the owning element of that scrollsnapchanging block-axis target. - 1. Otherwise, set |blockTarget| to that scrollsnapchanging block-axis target. - 1. If the scrollsnapchanging inline-axis target associated with target is a pseudo-element, - set |inlineTarget| to the owning element of that scrollsnapchanging inline-axis target. - 1. Otherwise, set |inlineTarget| to that scrollsnapchanging inline-axis target. - 1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchanging}} at target - and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and - {{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget|, respectively. - 1. Otherwise, fire an event named type at target. + 1. Let |blockTarget| and |inlineTarget| be null initially. + 1. If the scrollsnapchangeTargetBlock associated with target is a pseudo-element, + set |blockTarget| to the owning element of that scrollsnapchangeTargetBlock. + 1. Otherwise, set |blockTarget| to that scrollsnapchangeTargetBlock. + 1. If the scrollsnapchangeTargetInline associated with target is a pseudo-element, + set |inlineTarget| to the owning element of that scrollsnapchangeTargetInline. + 1. Otherwise, Set |inlineTarget| to that scrollsnapchangeTargetInline. + 1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchange}} at target + and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and + {{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget| respectively. + 1. Otherwise, if type is "scrollsnapchanging", then: + 1. Let |blockTarget| and |inlineTarget| be null initially. + 1. If the scrollsnapchanging block-axis target associated with target is a pseudo-element, + set |blockTarget| to the owning element of that scrollsnapchanging block-axis target. + 1. Otherwise, set |blockTarget| to that scrollsnapchanging block-axis target. + 1. If the scrollsnapchanging inline-axis target associated with target is a pseudo-element, + set |inlineTarget| to the owning element of that scrollsnapchanging inline-axis target. + 1. Otherwise, set |inlineTarget| to that scrollsnapchanging inline-axis target. + 1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchanging}} at target + and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and + {{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget|, respectively. + 1. Otherwise, fire an event named type at target. 1. Empty doc's pending scroll events. Whenever scrolling is completed, the user agent must run these steps: