Allow script to scroll overflow: scroll elements

Before the code was only allowing `overflow: hidden` elements to scroll.
This fixes that issue and also clean up the code that deals with
detecting whether the body is a "potentially scrollable" in quirks mode.
This commit is contained in:
Martin Robinson 2023-04-25 09:07:53 +02:00
parent 3ab5e2a188
commit eca0acf459
11 changed files with 60 additions and 173 deletions

View file

@ -0,0 +1,2 @@
[text-overflow-021.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[add-background-attachment-fixed-during-smooth-scroll.html]
expected: TIMEOUT

View file

@ -1,4 +0,0 @@
[background-change-during-smooth-scroll.html]
expected: TIMEOUT
[background change during smooth scroll]
expected: NOTRUN

View file

@ -1,6 +1,3 @@
[elementScroll-002.html]
[simple scroll with style: 'margin' and 'overflow: scroll']
expected: FAIL
[simple scroll with style: 'padding' and 'overflow: scroll']
expected: FAIL

View file

@ -4,6 +4,3 @@
[Smooth scrolling of an element with default scroll-behavior]
expected: FAIL
[Instant scrolling of an element with default scroll-behavior]
expected: FAIL

View file

@ -67,48 +67,3 @@
[Set scrollTop to element with smooth scroll-behavior]
expected: FAIL
[Element with auto scroll-behavior ; scroll() with default behavior]
expected: FAIL
[Element with auto scroll-behavior ; scroll() with auto behavior]
expected: FAIL
[Element with auto scroll-behavior ; scroll() with instant behavior]
expected: FAIL
[Element with smooth scroll-behavior ; scroll() with instant behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollTo() with default behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollTo() with auto behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
[Element with smooth scroll-behavior ; scrollTo() with instant behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollBy() with default behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollBy() with auto behavior]
expected: FAIL
[Element with auto scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
[Element with smooth scroll-behavior ; scrollBy() with instant behavior]
expected: FAIL
[Set scrollLeft to element with auto scroll-behavior]
expected: FAIL
[Set scrollTop to element with auto scroll-behavior]
expected: FAIL
[Aborting an ongoing smooth scrolling on an element with another smooth scrolling]
expected: FAIL

View file

@ -10,57 +10,3 @@
[Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollIntoView() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scroll() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scroll() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scroll() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scroll() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollTo() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollTo() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollTo() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollTo() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 0) to (500, 250) using scrollBy() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 0) to (500, 250) using scrollBy() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (0, 500) to (500, 250) using scrollBy() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from (1000, 500) to (500, 250) using scrollBy() ]
expected: FAIL
[Scroll positions when performing smooth scrolling from 0 to 500 by setting scrollLeft ]
expected: FAIL
[Scroll positions when performing smooth scrolling from 1000 to 500 by setting scrollLeft ]
expected: FAIL
[Scroll positions when performing smooth scrolling from 0 to 250 by setting scrollTop ]
expected: FAIL
[Scroll positions when performing smooth scrolling from 500 to 250 by setting scrollTop ]
expected: FAIL
[Scroll positions when aborting a smooth scrolling with another smooth scrolling]
expected: FAIL
[Scroll positions when aborting a smooth scrolling with an instant scrolling]
expected: FAIL

View file

@ -17,15 +17,6 @@
[scrollingElement in non-quirks mode]
expected: FAIL
[scroll() on the root element in non-quirks mode]
expected: FAIL
[scrollBy() on the root element in non-quirks mode]
expected: FAIL
[scrollLeft/scrollTop on the root element in non-quirks mode]
expected: FAIL
[scrollWidth/scrollHeight on the root element in non-quirks mode]
expected: FAIL
@ -43,4 +34,3 @@
[scrollLeft/scrollRight of the content in non-quirks mode]
expected: FAIL

View file

@ -1,4 +0,0 @@
[fieldset-overflow-cssomview.html]
[Test cssom-view API for FIELDSET]
expected: FAIL