WebKit Bugzilla
Attachment 362606 Details for
Bug 194433
: Compute fixed position rect based on scrolling tree view of the current scroll position
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch (tests)
fixed-sticky-tests.patch (text/plain), 5.33 KB, created by
Frédéric Wang (:fredw)
on 2019-02-21 08:05:27 PST
(
hide
)
Description:
Patch (tests)
Filename:
MIME Type:
Creator:
Frédéric Wang (:fredw)
Created:
2019-02-21 08:05:27 PST
Size:
5.33 KB
patch
obsolete
>diff --git a/LayoutTests/fast/scrolling/ios/programmatic-scroll-iframe.html b/LayoutTests/fast/scrolling/ios/programmatic-scroll-iframe.html >index af8582f868a..48993ca1677 100644 >--- a/LayoutTests/fast/scrolling/ios/programmatic-scroll-iframe.html >+++ b/LayoutTests/fast/scrolling/ios/programmatic-scroll-iframe.html >@@ -23,11 +23,16 @@ > document.getElementById("scrollBelowYLimit").contentWindow.window.scrollBy(0, -100); > document.getElementById("scrollAboveYLimit").contentWindow.window.scrollBy(0, 200); > >+ // This checks scrolling behavior for position "fixed" and "sticky". >+ document.getElementById("positionFixed").contentWindow.window.scrollTo(100, 100); >+ document.getElementById("positionStickyBegin").contentWindow.window.scrollTo(0, 50); >+ document.getElementById("positionStickyEnd").contentWindow.window.scrollTo(0, 150); >+ > if (window.testRunner) > testRunner.notifyDone(); > } > >- var frameToLoadCount = 9; >+ var frameToLoadCount = 12; > function newFrameLoaded() { > frameToLoadCount--; > if (frameToLoadCount == 0) >@@ -93,6 +98,24 @@ > <div style='position: absolute; width: 200px; height: 200px; background: green;'></div> > </body>" onload="newFrameLoaded()"> > </iframe> >+ <iframe id="positionFixed" style="left: 0px; top: 300px;" scrolling="yes" srcdoc=" >+ <body style='margin: 0; width: 200px; height: 200px'> >+ <div style='position: fixed; width: 100px; height: 100px; background: green;'></div> >+ </body>" onload="newFrameLoaded()"> >+ </iframe> >+ <iframe id="positionStickyBegin" style="left: 100px; top: 300px;" scrolling="yes" srcdoc=" >+ <body style='margin: 0; width: 200px; height: 300px'> >+ <div style='height: 50px'></div> >+ <div style='width: 100px; height: 50px; background: green;'></div> >+ <div style='position: -webkit-sticky; position: sticky; left: 0px; top: 0px; width: 100px; height: 50px; background: green;'></div> >+ </body>" onload="newFrameLoaded()"> >+ </iframe> >+ <iframe id="positionStickyEnd" style="left: 200px; top: 300px;" scrolling="yes" srcdoc=" >+ <body style='margin: 0; width: 200px; height: 300px'> >+ <div style='height: 100px'></div> >+ <div style='position: -webkit-sticky; position: sticky; left: 0px; top: 0px; width: 100px; height: 100px; background: green;'></div> >+ </body>" onload="newFrameLoaded()"> >+ </iframe> > </div> > </body> > </html> >diff --git a/LayoutTests/fast/scrolling/ios/scroll-iframe-expected.html b/LayoutTests/fast/scrolling/ios/scroll-iframe-expected.html >index d7f646a3f53..413e6ae0899 100644 >--- a/LayoutTests/fast/scrolling/ios/scroll-iframe-expected.html >+++ b/LayoutTests/fast/scrolling/ios/scroll-iframe-expected.html >@@ -19,6 +19,8 @@ > <div class=testdiv></div> > <div class=testdiv></div> > <div class=testdiv></div> >+ <div class=testdiv></div> >+ <div class=testdiv></div> > </div> > </body> > </html> >diff --git a/LayoutTests/fast/scrolling/ios/scroll-iframe.html b/LayoutTests/fast/scrolling/ios/scroll-iframe.html >index 3b1e33cd673..ae336c8ba8e 100644 >--- a/LayoutTests/fast/scrolling/ios/scroll-iframe.html >+++ b/LayoutTests/fast/scrolling/ios/scroll-iframe.html >@@ -37,11 +37,19 @@ > await touchAndDragFromPointToPoint(c.x, c.y, c.x, c.y - 2000); > await liftUpAtPoint(c.x, c.y - 2000); > >+ c = centerOf("positionFixed"); >+ await touchAndDragFromPointToPoint(c.x, c.y, c.x - 150, c.y - 150); >+ await liftUpAtPoint(c.x - 150, c.y - 150); >+ >+ c = centerOf("positionSticky"); >+ await touchAndDragFromPointToPoint(c.x, c.y, c.x, c.y - 150); >+ await liftUpAtPoint(c.x, c.y - 150); >+ > // Wait for scrolling to stabilize and for scrollbars to disappear. > setTimeout(() => {testRunner.notifyDone(); }, 2000); > } > >- var frameToLoadCount = 4; >+ var frameToLoadCount = 6; > function newFrameLoaded() { > frameToLoadCount--; > if (frameToLoadCount == 0) >@@ -85,6 +93,19 @@ > <div style='width: 100px; height: 500px; background: green;'></div> > </body>" onload="newFrameLoaded()"> > </iframe> >+ <iframe id="positionFixed" scrolling="yes" srcdoc=" >+ <body style='position: relative; margin: 0; width: 300px; height: 300px'> >+ <div style='position: fixed; width: 100px; height: 50px; background: green;'></div> >+ <div style='position: absolute; bottom: 0px; right: 0px; width: 100px; height: 50px; background: green;'></div> >+ </body>" onload="newFrameLoaded()"> >+ </iframe> >+ <iframe id="positionSticky" scrolling="yes" srcdoc=" >+ <body style='position: relative; margin: 0; width: 300px; height: 300px'> >+ <div style='height: 100px'></div> >+ <div style='position: -webkit-sticky; position: sticky; left: 0px; top: 0px; width: 100px; height: 50px; background: green;'></div> >+ <div style='position: absolute; bottom: 0px; width: 100px; height: 50px; background: green;'></div> >+ </body>" onload="newFrameLoaded()"> >+ </iframe> > </div> > </body> > </html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 194433
:
361500
|
361501
|
361502
|
361503
|
361504
|
361515
|
362606
|
362990