99ec0ee763c19a419d0bcc730d0f6a3619c1f6cf
[test/tct/web/api.git] /
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2013 Intel Corporation.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 * Redistributions of works must retain the original copyright notice, this list
9   of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the original copyright notice,
11   this list of conditions and the following disclaimer in the documentation
12   and/or other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors
14   may be used to endorse or promote products derived from this work without
15   specific prior written permission.
16
17 THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
21 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 Authors:
29         Liu, Jinfeng <jinfengx.liu@intel.com>
30         Cui, Jieqiong <jieqiongx.cui@intel.com>
31
32 -->
33
34 <html>
35   <head>
36     <title>CSS3 MultiColumn Test: CSS3Multicolumn_column-gap_image_custom_png_clipped</title>
37     <link rel="author" title="Intel" href="http://www.intel.com" />
38     <link rel="help" href="http://www.w3.org/TR/2011/CR-css3-multicol-20110412/" />
39     <meta name="flags" content="" />
40     <meta name="assert" content="Check if the image is wider than the column, and is therefore clipped" />
41     <script src="support/user.js"></script>
42     <style>
43         div.test {
44             width: 240px;
45             height: 200px;
46             text-align:center;
47             position: relative;
48             border: solid 5px black;
49             margin: 0.5em 2em 1em 0;
50             font: bold 14px/19px Arial, sans-serif;
51         }
52         .test p {
53             padding: 3px;
54             margin: 0;
55         }
56         img {
57              margin: 3px;
58         }
59     </style>
60   </head>
61   <body>
62     <p>Test passes if the right side of the cat image is clipped by the yellow line</p>
63     <div class="test" id="test">
64       <div>
65         <img src="support/cat.png"/>
66          M nop qrst uv wx yz.<br>
67         Ab cde fgh i jkl. Mno<br>
68         pqr stu vw xyz. A bc<br>
69         def g hij klm nopqrs<br>
70         x yz. Abc def ghi jkl.<br>
71         M nop qrst uv wx yz.<br>
72         Ab cde fgh i jkl. Mno<br>
73         Pqr stu vw xyz.
74       </div>
75     </div>
76     <script>
77         var div = document.querySelector("#test");
78         div.style[headProp("columnWidth")] = "60px";
79         div.style[headProp("columnGap")] ="5px";
80         div.style[headProp("columnRule")] ="5px solid yellow";
81     </script>
82   </body>
83 </html>