layout/generic/test/plugin_clipping_helper_table.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
     3 <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
     4 <head>
     5   <style>
     6   embed { width:300px; height:200px; display:block; }
     7   </style>
     8 </head>
     9 <body>
    11 <!-- Use a XUL element here so we can get its boxObject.screenX/Y -->
    12 <hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1"
    13       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    14   <hbox style="width:100px;"></hbox><hbox id="h2"/>
    15 </hbox>
    17 <embed id="p1" type="application/x-test" wmode="window"
    18        style="position:absolute; top:0; left:0;"></embed>
    19 <table style="width:300px; height:100px; position:absolute; top:100px; left:0; background:white;">
    20 </table>
    21 <embed id="p2" type="application/x-test" wmode="window"
    22        style="position:absolute; top:200px; left:0;"></embed>
    23 <table style="width:300px; height:300px; position:absolute; top:300px; left:0; background:white; border-collapse:collapse;">
    24 </table>
    26 <script src="plugin_clipping_lib.js"></script>
    27 <script class="testbody" type="application/javascript">
    28 <![CDATA[
    30 function runTests() {
    31   // p1 is partially covered by a table with an opaque background
    32   checkClipRegion("p1", [[0, 0, 300, 100]]);
    33   // p2 is partially covered by a table with an opaque background
    34   checkClipRegion("p2", [[0, 0, 300, 100]]);
    36   window.opener.SimpleTest.finish();
    37   window.close();
    38 }
    40 ]]>
    41 </script>
    43 </body>
    44 </html>

mercurial