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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/css3/compositing/mix-blend-mode-with-opacity-change-js.html
diff --git a/LayoutTests/css3/compositing/mix-blend-mode-with-opacity-change-js.html b/LayoutTests/css3/compositing/mix-blend-mode-with-opacity-change-js.html
new file mode 100644
index 0000000000000000000000000000000000000000..90e8c6e745758821450b488eefeb1b7121bd18fc
--- /dev/null
+++ b/LayoutTests/css3/compositing/mix-blend-mode-with-opacity-change-js.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+ .container {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+ }
+ .parent {
+ width: 90px;
+ height: 90px;
+ isolation: isolate;
+ border: 5px solid red;
+ }
+ #child {
+ width: 100px;
+ height: 100px;
+ background-color: blue;
+ margin: -5px;
+ opacity: 0.99;
+ }
+</style>
+<script>
+ function applyBlendMode() {
+ document.getElementById("child").style["mix-blend-mode"] = "multiply";
+ }
+</script>
+</head>
+<body onload="applyBlendMode()">
+ <p>Test that mix-blend-mode multiply set from javascript on an element<br />
+ having opacity uses the backdrop limited to its stacking context.</p>
+ <p>This test passes if you can see a blue square with black border.</p>
+ <div class="container">
+ <div class="parent">
+ <div id="child"></div>
+ </div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698