WebKit Bugzilla
Attachment 370561 Details for
Bug 198213
: Need to composite absolute inside stacking-context parent in scroller
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase
ancestor-clipping-layer-stationary-in-moves.html (text/html), 2.14 KB, created by
Simon Fraser (smfr)
on 2019-05-23 21:56:44 PDT
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Simon Fraser (smfr)
Created:
2019-05-23 21:56:44 PDT
Size:
2.14 KB
patch
obsolete
><!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true internal:AsyncOverflowScrollingEnabled=true ] --> ><html> ><head> > <meta name="viewport" content="initial-scale=1.0"> > <style> > #scroller { > margin: 10px; > height: 300px; > width: 300px; > border: 1px solid black; > overflow: scroll; > } > > .box { > width: 200px; > height: 200px; > } > > .clipping { > opacity: 0.9; > overflow: hidden; > border: 1px solid black; > } > > .absolute { > position: absolute; > top: 20px; > left: 20px; > width: 160px; > height: 160px; > background-color: green; > } > > .sharing-preventer { > height: 10px; > width: 10px; > transform: translateZ(0); > background-color: silver; > } > > .spacer { > height: 100px; > } > </style> > <script> > if (window.testRunner) > testRunner.waitUntilDone(); > > function getUnstableScrollScript(x, y, scrollX, scrollY) > { > return `(function() { > uiController.scrollUpdatesDisabled = true; > uiController.immediateScrollElementAtContentPointToOffset(${x}, ${y}, ${scrollX}, ${scrollY}); > uiController.doAfterPresentationUpdate(function() { > uiController.uiScriptComplete(); > }); > })();`; > } > > function doTest() > { > if (!testRunner.runUIScript) > return > > testRunner.runUIScript(getUnstableScrollScript(50, 50, 0, 200), () => { > testRunner.notifyDone(); > }); > } > > window.addEventListener('load', doTest, false); > </script> ></head> ><body> > <div id="scroller"> > <div class="spacer"></div> > <div class="clipping box"> > <div class="sharing-preventer"></div> > <div class="absolute box"></div> > </div> > <div class="spacer"></div> > </div> ></body> ></html>
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true internal:AsyncOverflowScrollingEnabled=true ] --> <html> <head> <meta name="viewport" content="initial-scale=1.0"> <style> #scroller { margin: 10px; height: 300px; width: 300px; border: 1px solid black; overflow: scroll; } .box { width: 200px; height: 200px; } .clipping { opacity: 0.9; overflow: hidden; border: 1px solid black; } .absolute { position: absolute; top: 20px; left: 20px; width: 160px; height: 160px; background-color: green; } .sharing-preventer { height: 10px; width: 10px; transform: translateZ(0); background-color: silver; } .spacer { height: 100px; } </style> <script> if (window.testRunner) testRunner.waitUntilDone(); function getUnstableScrollScript(x, y, scrollX, scrollY) { return `(function() { uiController.scrollUpdatesDisabled = true; uiController.immediateScrollElementAtContentPointToOffset(${x}, ${y}, ${scrollX}, ${scrollY}); uiController.doAfterPresentationUpdate(function() { uiController.uiScriptComplete(); }); })();`; } function doTest() { if (!testRunner.runUIScript) return testRunner.runUIScript(getUnstableScrollScript(50, 50, 0, 200), () => { testRunner.notifyDone(); }); } window.addEventListener('load', doTest, false); </script> </head> <body> <div id="scroller"> <div class="spacer"></div> <div class="clipping box"> <div class="sharing-preventer"></div> <div class="absolute box"></div> </div> <div class="spacer"></div> </div> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 198213
: 370561