Skip to content

Commit 169b434

Browse files
committed
[cssom-view-1] Per flackr feedback, not worth making quirks mode care about single-axis.
1 parent d5541f2 commit 169b434

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎cssom-view-1/Overview.bs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ The <dfn attribute for=Element>scrollTop</dfn> attribute, on getting, must retur
16551655
1. If <var>window</var> is null, return zero and terminate these steps.
16561656
1. If the element is the [=root element=] and <var>document</var> is in <a>quirks mode</a>, return zero and terminate these steps.
16571657
1. If the element is the [=root element=] return the value of {{Window/scrollY}} on <var>window</var>.
1658-
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in the y axis, return the value of {{Window/scrollY}} on <var>window</var>.
1658+
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in at least one axis, return the value of {{Window/scrollY}} on <var>window</var>.
16591659
1. If the element does not have any associated [=CSS/box=], return zero and terminate these steps.
16601660
1. Return the y-coordinate of the <a>scrolling area</a> at the alignment point with the top of the <a>padding edge</a> of the element.
16611661

@@ -1669,7 +1669,7 @@ When setting the {{Element/scrollTop}} attribute these steps must be run:
16691669
1. If <var>window</var> is null, terminate these steps.
16701670
1. If the element is the [=root element=] and <var>document</var> is in <a>quirks mode</a>, terminate these steps.
16711671
1. If the element is the [=root element=] invoke {{Window/scroll()}} on <var>window</var> with {{Window/scrollX}} on <var>window</var> as first argument and <var>y</var> as second argument, and terminate these steps.
1672-
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in the y axis, invoke {{Window/scroll()}} on <var>window</var> with {{Window/scrollX}} as first argument and <var>y</var> as second argument, and terminate these steps.
1672+
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in at least one axis, invoke {{Window/scroll()}} on <var>window</var> with {{Window/scrollX}} as first argument and <var>y</var> as second argument, and terminate these steps.
16731673
1. If the element does not have any associated [=CSS/box=], the element has no associated <a>scrolling box</a>, or the element has no overflow, terminate these steps.
16741674
1. <a lt='scroll an element'>Scroll the element</a> to {{Element/scrollLeft}},<var>y</var>, with the scroll behavior being "<code>auto</code>".
16751675

@@ -1692,7 +1692,7 @@ The <dfn attribute for=Element>scrollLeft</dfn> attribute, on getting, must retu
16921692
1. If <var>window</var> is null, return zero and terminate these steps.
16931693
1. If the element is the [=root element=] and <var>document</var> is in <a>quirks mode</a>, return zero and terminate these steps.
16941694
1. If the element is the [=root element=] return the value of {{Window/scrollX}} on <var>window</var>.
1695-
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in the x axis, return the value of {{Window/scrollX}} on <var>window</var>.
1695+
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in at least one axis, return the value of {{Window/scrollX}} on <var>window</var>.
16961696
1. If the element does not have any associated [=CSS/box=], return zero and terminate these steps.
16971697
1. Return the x-coordinate of the <a>scrolling area</a> at the alignment point with the left of the <a>padding edge</a> of the element.
16981698

@@ -1706,7 +1706,7 @@ When setting the {{Element/scrollLeft}} attribute these steps must be run:
17061706
1. If <var>window</var> is null, terminate these steps.
17071707
1. If the element is the [=root element=] and <var>document</var> is in <a>quirks mode</a>, terminate these steps.
17081708
1. If the element is the [=root element=] invoke {{Window/scroll()}} on <var>window</var> with <var>x</var> as first argument and {{Window/scrollY}} on <var>window</var> as second argument, and terminate these steps.
1709-
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in the x axis, invoke {{Window/scroll()}} on <var>window</var> with <var>x</var> as first argument and {{Window/scrollY}} on <var>window</var> as second argument, and terminate these steps.
1709+
1. If the element is <a>the <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a>, and the element is not <a>potentially scrollable</a> in at least one axis, invoke {{Window/scroll()}} on <var>window</var> with <var>x</var> as first argument and {{Window/scrollY}} on <var>window</var> as second argument, and terminate these steps.
17101710
1. If the element does not have any associated [=CSS/box=], the element has no associated <a>scrolling box</a>, or the element has no overflow, terminate these steps.
17111711
1. <a lt='scroll an element'>Scroll the element</a> to <var>x</var>,{{Element/scrollTop}}, with the scroll behavior being "<code>auto</code>".
17121712

0 commit comments

Comments
 (0)