From da9807c4d2dadc2c7a8473746e3e59116bc256ea Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Thu, 9 Oct 2025 19:33:54 +0200 Subject: [PATCH] [cssom-view-1] Fix indentation of "run the scroll" steps The markdown assumed that a 2-space indent was enough to create substeps, but four spaces are needed and the structure of the algorithm was wrong in the generated document as a result. --- cssom-view-1/Overview.bs | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) 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: