Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: LayoutTests/css3/compositing/mix-blend-mode-with-opacity-change-js.html

Issue 90983002: [CSS Blending] Fix blending when mix-blend-mode is set from javascript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 .container {
6 width: 100px;
7 height: 100px;
8 background-color: green;
9 }
10 .parent {
11 width: 90px;
12 height: 90px;
13 isolation: isolate;
14 border: 5px solid red;
15 }
16 #child {
17 width: 100px;
18 height: 100px;
19 background-color: blue;
20 margin: -5px;
21 opacity: 0.99;
22 }
23 </style>
24 <script>
25 function applyBlendMode() {
26 document.getElementById("child").style["mix-blend-mode"] = "multiply";
27 }
28 </script>
29 </head>
30 <body onload="applyBlendMode()">
31 <p>Test that mix-blend-mode multiply set from javascript on an element<br />
32 having opacity uses the backdrop limited to its stacking context.</p>
33 <p>This test passes if you can see a blue square with black border.</p>
34 <div class="container">
35 <div class="parent">
36 <div id="child"></div>
37 </div>
38 </div>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698