WebKit Bugzilla
Attachment 370101 Details for
Bug 197975
: REGRESSION (r245170): gmail.com header flickers when hovering over the animating buttons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Reduction
animation-breaks-sharing-compositing.html (text/html), 1.59 KB, created by
Simon Fraser (smfr)
on 2019-05-16 21:05:36 PDT
(
hide
)
Description:
Reduction
Filename:
MIME Type:
Creator:
Simon Fraser (smfr)
Created:
2019-05-16 21:05:36 PDT
Size:
1.59 KB
patch
obsolete
><!DOCTYPE html> ><html> ><head> > <style> > .backdrop { > position: fixed; > left: 10px; > top: 10px; > width: 400px; > height: 400px; > background-color: silver; > } > > .top-bar { > position: relative; > margin: 20px; > width: 500px; > height: 100px; > background-color: lightblue; > } > > .header { > position: relative; > z-index: 5; > padding: 10px; > margin: 40px; > width: 400px; > height: 50px; > background-color: green; > } > > .container { > padding: 10px; > margin: 20px 0; > width: 500px; > border: 2px solid black; > } > > .button { > position: relative; > z-index: 0; > margin: 10px; > height: 20px; > background-color: gray; > padding: 10px; > border-radius: 10px; > } > > .button::before { > content: ''; > display: block; > position: absolute; > z-index: -1; > top: 0; > left: 0; > height: 100%; > width: 100%; > background: rgba(128, 0, 0, 0.5); > border-radius: 10px; > } > > .button::before { > animation: scale 2s 1s; > } > > @keyframes scale { > from { transform: scale(0); } > to { transform: scale(1); } > } > > .button.second:before { > animation-delay: 2s; > animation-duration: 3000s; > background: rgba(128, 0, 128, 0.5); > } > </style> ></head> ><body> > <div class="backdrop"> </div> > > <div class="top-bar"> > <div class="header">This should not disappear</div> > <div class="container"> > <div class="button first"> > </div> > <div class="button second"> > </div> > </div> > </div> > ></body> ></html>
<!DOCTYPE html> <html> <head> <style> .backdrop { position: fixed; left: 10px; top: 10px; width: 400px; height: 400px; background-color: silver; } .top-bar { position: relative; margin: 20px; width: 500px; height: 100px; background-color: lightblue; } .header { position: relative; z-index: 5; padding: 10px; margin: 40px; width: 400px; height: 50px; background-color: green; } .container { padding: 10px; margin: 20px 0; width: 500px; border: 2px solid black; } .button { position: relative; z-index: 0; margin: 10px; height: 20px; background-color: gray; padding: 10px; border-radius: 10px; } .button::before { content: ''; display: block; position: absolute; z-index: -1; top: 0; left: 0; height: 100%; width: 100%; background: rgba(128, 0, 0, 0.5); border-radius: 10px; } .button::before { animation: scale 2s 1s; } @keyframes scale { from { transform: scale(0); } to { transform: scale(1); } } .button.second:before { animation-delay: 2s; animation-duration: 3000s; background: rgba(128, 0, 128, 0.5); } </style> </head> <body> <div class="backdrop"> </div> <div class="top-bar"> <div class="header">This should not disappear</div> <div class="container"> <div class="button first"> </div> <div class="button second"> </div> </div> </div> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 197975
: 370101 |
370102
|
370103
|
370104
|
370105
|
370106
|
370122