layout/reftests/css-blending/mix-blend-mode-child-of-blended-has-opacity.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>CSS Test: blending between an element and the child with opacity</title>
michael@0 5 <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com">
michael@0 6 <link rel="help" href="http://dev.w3.org/fxtf/compositing-1/#mix-blend-mode">
michael@0 7 <meta name="flags" content="">
michael@0 8 <meta name="assert" content="Test checks that an element with mix-blend-mode and his child with opacity blends as a group(no blending between the element with mix-blend-mode and the child element)">
michael@0 9 <link rel="match" href="reference/mix-blend-mode-child-of-blended-has-opacity-ref.html">
michael@0 10 <style>
michael@0 11 .parent {
michael@0 12 opacity: 0.9;
michael@0 13 background: yellow;/*rgb(255,255,0);*/
michael@0 14 margin: 30px;
michael@0 15 width: 120px;
michael@0 16 height: 120px;
michael@0 17 display: inline-block;
michael@0 18 }
michael@0 19 .blended {
michael@0 20 width: 100px;
michael@0 21 height: 100px;
michael@0 22 background: fuchsia; /* rgb(255, 0, 255);*/
michael@0 23 display: inline-block;
michael@0 24 mix-blend-mode: difference;
michael@0 25 margin-top: 10px;
michael@0 26 margin-left: 10px;
michael@0 27 }
michael@0 28 .childBlended {
michael@0 29 background: red;/*rgb(255,0,0);*/
michael@0 30 width: 80px;
michael@0 31 height: 80px;
michael@0 32 margin-top: 10px;
michael@0 33 margin-left: 10px;
michael@0 34 opacity: 0.99;
michael@0 35 }
michael@0 36 </style>
michael@0 37 </head>
michael@0 38 <body>
michael@0 39 <div class="parent">
michael@0 40 <div class="blended">
michael@0 41 <div class="childBlended"></div>
michael@0 42 </div>
michael@0 43 </div>
michael@0 44 </body>
michael@0 45 </html>

mercurial