3 <!-- READ BEFORE UPDATING:
4 If this test is updated make sure to increment the "revision" value of the
5 associated test in content/test/gpu/page_sets/pixel_tests.json. This will ensure
6 that the baseline images are regenerated on the next run.
11 <title>Browser Plugin Compositing Test: Projected Blue Box over Black Background
</title>
12 <style type=
"text/css">
18 var g_swapsBeforeAck
= 100;
25 function waitForFinish()
27 if (g_swapsBeforeAck
== 0) {
28 domAutomationController
.setAutomationId(1);
29 domAutomationController
.send("SUCCESS");
32 document
.getElementById('plugin').style
.zIndex
= g_swapsBeforeAck
+ 1;
33 window
.webkitRequestAnimationFrame(waitForFinish
);
38 <body onload=
"main()">
39 <div id=
"container" style=
"position:absolute; top:0px; left:0px">
41 <!-- Browser plugin is navigated to the base64 encoding of the following
44 <style type="text/css">
50 -webkit-perspective: 500;
60 #container > :first-child {
61 background-color: blue;
62 -webkit-transform: rotateY(45deg);
67 <div style="position:relative; width:200px; height:200px; background-color:black; zindex-0">
69 <div id="container" style="position:absolute; top:0px; left:0px">
70 <div id="blue_box"></div>
76 <object id="plugin" src="data:text/html;base64,DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCi5ub21hcmdpbiB7DQogIG1hcmdpbjogMHB4IGF1dG87DQp9DQoNCiNjb250YWluZXIgew0KICAtd2Via2l0LXBlcnNwZWN0aXZlOiA1MDA7DQp9DQoNCiNjb250YWluZXIgPiBkaXYgew0KICBwb3NpdGlvbjogcmVsYXRpdmU7DQogIG1hcmdpbjogNTBweDsNCiAgd2lkdGg6IDEyNXB4Ow0KICBoZWlnaHQ6IDc1cHg7DQp9DQoNCiNjb250YWluZXIgPiA6Zmlyc3QtY2hpbGQgew0KICBiYWNrZ3JvdW5kLWNvbG9yOiBibHVlOw0KICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlWSg0NWRlZyk7DQp9DQo8L3N0eWxlPg0KPC9oZWFkPg0KPGJvZHk+DQo8ZGl2IHN0eWxlPSJwb3NpdGlvbjpyZWxhdGl2ZTsgd2lkdGg6MjAwcHg7IGhlaWdodDoyMDBweDsgYmFja2dyb3VuZC1jb2xvcjpibGFjazsgemluZGV4LTAiPg0KPC9kaXY+DQo8ZGl2IGlkPSJjb250YWluZXIiIHN0eWxlPSJwb3NpdGlvbjphYnNvbHV0ZTsgdG9wOjBweDsgbGVmdDowcHgiPg0KICA8ZGl2IGlkPSJibHVlX2JveCI+PC9kaXY+DQo8L2Rpdj4NCjwvYm9keT4NCjwvaHRtbD4NCg==" type="application/browser-plugin" width="400px" height="300px">