OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
pdr.
2016/04/23 03:32:22
Is it possible to test these with reftests instead
Xianzhu
2016/04/25 23:18:15
Converted 2 of the 3 tests into reftests. Not usin
| |
2 <style> | |
3 .container { | |
4 position: absolute; | |
5 left: 20px; | |
6 top: 50px; | |
7 } | |
8 .inner { | |
9 position: absolute; | |
10 left: 10px; | |
11 top: 10px; | |
12 } | |
13 </style> | |
14 <script> | |
15 window.onload = function() { | |
pdr.
2016/04/23 03:40:54
Nit: No need for onload here, you can just put the
Xianzhu
2016/04/25 23:18:15
Done but still use document.getElementById('area')
| |
16 document.getElementById("area").focus(); | |
17 } | |
18 </script> | |
19 Tests that we paint area outline properly when the image is inside positioned co ntainers. | |
20 <div class=container> | |
21 <div class=inner> | |
22 <img src="./resources/green.jpg" width=50 height=50 usemap="#map"/> | |
23 <map name="map"><area id=area shape="rectangle" coords="5, 5, 25, 25" href=" #"></map> | |
24 </div> | |
25 </div> | |
OLD | NEW |