Skip to content

Commit ad098d6

Browse files
committed
[cssom-view] scrollingElement should not return the body if it is itself scrollable. https://lists.w3.org/Archives/Public/www-style/2015Apr/0245.html
1 parent fca9351 commit ad098d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cssom-view/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ revision of CSS or HTML.
922922
<p class=atrisk>The <dfn attribute for=Document>scrollingElement</dfn> attribute, on getting, must run these steps:
923923

924924
1. If the {{Document}} is in <a>quirks mode</a>, follow these substeps:
925-
1. If <a>the HTML <code>body</code> element</a> exists, return <a>the HTML <code>body</code> element</a> and abort these steps.
925+
1. If <a>the HTML <code>body</code> element</a> exists, and it does not have an associated <a>scrolling box</a>, return <a>the HTML <code>body</code> element</a> and abort these steps.
926926
1. Return null and abort these steps.
927927
1. If there is a root element, return the root element and abort these steps.
928928
1. Return null.

0 commit comments

Comments
 (0)