WebKit Bugzilla
Attachment 373037 Details for
Bug 199260
: Rotated composited elements with clipping descendants sometimes don't respecting original layering
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Better testcase
rotation-and-clipping.html (text/html), 1.32 KB, created by
Simon Fraser (smfr)
on 2019-06-27 11:03:27 PDT
(
hide
)
Description:
Better testcase
Filename:
MIME Type:
Creator:
Simon Fraser (smfr)
Created:
2019-06-27 11:03:27 PDT
Size:
1.32 KB
patch
obsolete
><!DOCTYPE html> ><html> ><head> > <title>https://bugs.webkit.org/show_bug.cgi?id=199260</title> > <style> > .object { > margin: 100px; > width: 200px; > height: 200px; > } > > .bad { > transform: rotate(297deg); > } > > .good { > transform: rotate(97deg); > } > .container { > position: relative; > width: 100%; > height: 100%; > overflow: hidden; > } > > .element-1 { > position: absolute; > top: 50px; > left: 50px; > width: 50px; > height: 50px; > background-color: red; > z-index: 1; > } > > .element-2 { > position: absolute; > top: -5px; > left: -5px; > width: 210px; > height: 210px; > background-color: green; > transform: translateZ(0); > z-index: 0; > } > </style> ></head> ><body> > ><h1>Bad</h1> ><div class="object bad"> > <div class="container"> > <div class="element-1"></div> > <div class="element-2"></div> > </div> ></div> > ><h1>Good</h1> ><div class="object good"> > <div class="container"> > <div class="element-1"></div> > <div class="element-2"></div> > </div> ></div> ></body>
<!DOCTYPE html> <html> <head> <title>https://bugs.webkit.org/show_bug.cgi?id=199260</title> <style> .object { margin: 100px; width: 200px; height: 200px; } .bad { transform: rotate(297deg); } .good { transform: rotate(97deg); } .container { position: relative; width: 100%; height: 100%; overflow: hidden; } .element-1 { position: absolute; top: 50px; left: 50px; width: 50px; height: 50px; background-color: red; z-index: 1; } .element-2 { position: absolute; top: -5px; left: -5px; width: 210px; height: 210px; background-color: green; transform: translateZ(0); z-index: 0; } </style> </head> <body> <h1>Bad</h1> <div class="object bad"> <div class="container"> <div class="element-1"></div> <div class="element-2"></div> </div> </div> <h1>Good</h1> <div class="object good"> <div class="container"> <div class="element-1"></div> <div class="element-2"></div> </div> </div> </body>
View Attachment As Raw
Actions:
View
Attachments on
bug 199260
:
373005
|
373037
|
373049
|
373052