hasOwnProperty inside structure property for-in loop should use an opcode like has_st...
[WebKit-https.git] / LayoutTests / css3 / calc / getComputedStyle-margin-percentage.html
1 <!DOCTYPE html>
2 <script src="../../resources/js-test-pre.js"></script>
3 <style>
4 #control { 
5     margin-left: 33%;
6     margin-top: 10%;
7     margin-right: 45%;
8     margin-bottom: 69%;
9 }
10 #calc { 
11     margin-left: calc(33%);
12     margin-top: calc(10%);
13     margin-right: calc(45%);
14     margin-bottom: calc(69%);
15 }
16 </style>
17 <div id="control"></div>
18 <div id="calc"></div>
19 <script>
20     function test(prop) {
21         shouldEvaluateTo("getComputedStyle(document.getElementById('calc'), null).getPropertyValue('" + prop + "')", "getComputedStyle(document.getElementById('control', null)).getPropertyValue('" + prop + "')");
22     }
23     
24     description("Tests calling getPropertyValue on computed margin styles involving CSS calc");
25     
26     test('margin-left');
27     test('margin-top');
28     test('margin-right');
29     test('margin-bottom');
30 </script>
31 <script src="../../resources/js-test-post.js"></script>