OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Tests the source-atop composite operator with the normal blend mode.<
/title> | 4 <title>Tests the source-atop composite operator with the normal blend mode.<
/title> |
5 <!-- | 5 <!-- |
6 This test mimics the source-atop example image in the Compositing and Bl
ending spec: | 6 This test mimics the source-atop example image in the Compositing and Bl
ending spec: |
7 https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#porterduf
fcompositingoperators_srcatop | 7 https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#porterduf
fcompositingoperators_srcatop |
8 | 8 |
9 If it passes, you should see a yellow square with a blue square in its l
ower right corner. | 9 If it passes, you should see a yellow square with a blue square in its l
ower right corner. |
10 This should be in the upper left corner of a white box with a black bord
er. | 10 This should be in the upper left corner of a white box with a black bord
er. |
11 --> | 11 --> |
12 <script> | 12 <script> |
13 if (window.testRunner) { | 13 if (window.testRunner) { |
14 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); | 14 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); |
15 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); | 15 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); |
16 window.testRunner.dumpAsText(true); | 16 window.testRunner.dumpAsTextWithPixelResults(); |
17 } | 17 } |
18 </script> | 18 </script> |
19 <style> | 19 <style> |
20 /* Draws a black border around the shaded destination div. */ | 20 /* Draws a black border around the shaded destination div. */ |
21 #border-container { | 21 #border-container { |
22 width: 200px; | 22 width: 200px; |
23 height: 200px; | 23 height: 200px; |
24 border: 1px solid black; | 24 border: 1px solid black; |
25 } | 25 } |
26 /* The shaded div. */ | 26 /* The shaded div. */ |
(...skipping 15 matching lines...) Expand all Loading... |
42 </head> | 42 </head> |
43 <body> | 43 <body> |
44 <div id="border-container"> | 44 <div id="border-container"> |
45 <div id="destination"> | 45 <div id="destination"> |
46 <div id="destination-opaque-child"> | 46 <div id="destination-opaque-child"> |
47 </div> | 47 </div> |
48 </div> | 48 </div> |
49 </div> | 49 </div> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |