WebKit Bugzilla
Attachment 371114 Details for
Bug 198454
: Optimize for negative z children on the root
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase
paint-order-non-stacking-negative-z-child.html (text/html), 1.69 KB, created by
Simon Fraser (smfr)
on 2019-06-01 10:55:22 PDT
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Simon Fraser (smfr)
Created:
2019-06-01 10:55:22 PDT
Size:
1.69 KB
patch
obsolete
><!DOCTYPE html> ><html> ><head> > <style> > .container { > position: relative; > margin: 30px; > width: 300px; > height: 300px; > border: 1px solid black; > box-shadow: 0 0 10px black; > } > > .negativez { > position: absolute; > top: 40px; > left: 20px; > z-index: -1; > width: 100px; > height: 100px; > background-color: green; > transform: translateZ(0); > } > > .trigger { > position: absolute; > top: 10px; > left: 10px; > width: 50px; > height: 50px; > background-color: gray; > transform: translateZ(0); > } > > </style> > <script> > if (window.testRunner) > testRunner.dumpAsText(); > > window.addEventListener('load', () => { > if (window.testRunner) > document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); > }, false); > </script> ></head> ><body> > <div class="trigger"></div> > <div class="container"> > <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> > <div class="negativez child"></div> > </div> ><pre id="layers"></pre> ></body> ></html>
<!DOCTYPE html> <html> <head> <style> .container { position: relative; margin: 30px; width: 300px; height: 300px; border: 1px solid black; box-shadow: 0 0 10px black; } .negativez { position: absolute; top: 40px; left: 20px; z-index: -1; width: 100px; height: 100px; background-color: green; transform: translateZ(0); } .trigger { position: absolute; top: 10px; left: 10px; width: 50px; height: 50px; background-color: gray; transform: translateZ(0); } </style> <script> if (window.testRunner) testRunner.dumpAsText(); window.addEventListener('load', () => { if (window.testRunner) document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); }, false); </script> </head> <body> <div class="trigger"></div> <div class="container"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <div class="negativez child"></div> </div> <pre id="layers"></pre> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 198454
: 371114