Skip to content

Commit 59281cf

Browse files
authored
Correct indentation for "run the scroll steps" (#13238)
These substeps were indented by 2 spaces, which Bikeshed didn't interpret as being nested, but was placing them at the same level. Indenting the steps by 4 spaces instead corrects the HTML output.
1 parent 4e8ca78 commit 59281cf

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

cssom-view-1/Overview.bs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,27 +2391,27 @@ Issue: In what order are scrollend events dispatched? Ordered based on scroll st
23912391
1. If <var>target</var> is a {{Document}}, and <var>type</var> is <code>"scroll"</code> or <code>"scrollend"</code>,
23922392
<a>fire an event</a> named <var>type</var> that bubbles at <var>target</var>.
23932393
1. Otherwise, if <var>type</var> is <code>"scrollsnapchange"</code>, then:
2394-
1. Let |blockTarget| and |inlineTarget| be null initially.
2395-
1. If the <a>scrollsnapchangeTargetBlock</a> associated with <var>target</var> is a pseudo-element,
2396-
set |blockTarget| to the owning element of that <a>scrollsnapchangeTargetBlock</a>.
2397-
1. Otherwise, set |blockTarget| to that <a>scrollsnapchangeTargetBlock</a>.
2398-
1. If the <a>scrollsnapchangeTargetInline</a> associated with <var>target</var> is a pseudo-element,
2399-
set |inlineTarget| to the owning element of that <a>scrollsnapchangeTargetInline</a>.
2400-
1. Otherwise, Set |inlineTarget| to that <a>scrollsnapchangeTargetInline</a>.
2401-
1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchange}} at <var>target</var>
2402-
and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and
2403-
{{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget| respectively.
2394+
1. Let |blockTarget| and |inlineTarget| be null initially.
2395+
1. If the <a>scrollsnapchangeTargetBlock</a> associated with <var>target</var> is a pseudo-element,
2396+
set |blockTarget| to the owning element of that <a>scrollsnapchangeTargetBlock</a>.
2397+
1. Otherwise, set |blockTarget| to that <a>scrollsnapchangeTargetBlock</a>.
2398+
1. If the <a>scrollsnapchangeTargetInline</a> associated with <var>target</var> is a pseudo-element,
2399+
set |inlineTarget| to the owning element of that <a>scrollsnapchangeTargetInline</a>.
2400+
1. Otherwise, Set |inlineTarget| to that <a>scrollsnapchangeTargetInline</a>.
2401+
1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchange}} at <var>target</var>
2402+
and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and
2403+
{{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget| respectively.
24042404
1. Otherwise, if <var>type</var> is <code>"scrollsnapchanging"</code>, then:
2405-
1. Let |blockTarget| and |inlineTarget| be null initially.
2406-
1. If the <a>scrollsnapchanging block-axis target</a> associated with <var>target</var> is a pseudo-element,
2407-
set |blockTarget| to the owning element of that <a>scrollsnapchanging block-axis target</a>.
2408-
1. Otherwise, set |blockTarget| to that <a>scrollsnapchanging block-axis target</a>.
2409-
1. If the <a>scrollsnapchanging inline-axis target</a> associated with <var>target</var> is a pseudo-element,
2410-
set |inlineTarget| to the owning element of that <a>scrollsnapchanging inline-axis target</a>.
2411-
1. Otherwise, set |inlineTarget| to that <a>scrollsnapchanging inline-axis target</a>.
2412-
1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchanging}} at <var>target</var>
2413-
and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and
2414-
{{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget|, respectively.
2405+
1. Let |blockTarget| and |inlineTarget| be null initially.
2406+
1. If the <a>scrollsnapchanging block-axis target</a> associated with <var>target</var> is a pseudo-element,
2407+
set |blockTarget| to the owning element of that <a>scrollsnapchanging block-axis target</a>.
2408+
1. Otherwise, set |blockTarget| to that <a>scrollsnapchanging block-axis target</a>.
2409+
1. If the <a>scrollsnapchanging inline-axis target</a> associated with <var>target</var> is a pseudo-element,
2410+
set |inlineTarget| to the owning element of that <a>scrollsnapchanging inline-axis target</a>.
2411+
1. Otherwise, set |inlineTarget| to that <a>scrollsnapchanging inline-axis target</a>.
2412+
1. Fire a {{SnapEvent}}, |snapevent|, named {{scrollsnapchanging}} at <var>target</var>
2413+
and let |snapevent|'s {{SnapEvent/snapTargetBlock}} and
2414+
{{SnapEvent/snapTargetInline}} attributes be |blockTarget| and |inlineTarget|, respectively.
24152415
1. Otherwise, <a>fire an event</a> named <var>type</var> at <var>target</var>.
24162416
1. Empty <var>doc</var>'s <a>pending scroll events</a>.
24172417

0 commit comments

Comments
 (0)