OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../fast/js/resources/js-test-pre.js"></script> |
3 <style> | 3 <style> |
4 #control { | 4 #control { |
5 margin-left: 33%; | 5 margin-left: 33%; |
6 margin-top: 10%; | 6 margin-top: 10%; |
7 margin-right: 45%; | 7 margin-right: 45%; |
8 margin-bottom: 69%; | 8 margin-bottom: 69%; |
9 } | 9 } |
10 #calc { | 10 #calc { |
(...skipping 10 matching lines...) Expand all Loading... |
21 shouldEvaluateTo("getComputedStyle(document.getElementById('calc'), null
).getPropertyValue('" + prop + "')", "getComputedStyle(document.getElementById('
control', null)).getPropertyValue('" + prop + "')"); | 21 shouldEvaluateTo("getComputedStyle(document.getElementById('calc'), null
).getPropertyValue('" + prop + "')", "getComputedStyle(document.getElementById('
control', null)).getPropertyValue('" + prop + "')"); |
22 } | 22 } |
23 | 23 |
24 description("Tests calling getPropertyValue on computed margin styles involv
ing CSS calc"); | 24 description("Tests calling getPropertyValue on computed margin styles involv
ing CSS calc"); |
25 | 25 |
26 test('margin-left'); | 26 test('margin-left'); |
27 test('margin-top'); | 27 test('margin-top'); |
28 test('margin-right'); | 28 test('margin-right'); |
29 test('margin-bottom'); | 29 test('margin-bottom'); |
30 </script> | 30 </script> |
31 <script src="../../fast/js/resources/js-test-post.js"></script> | |
OLD | NEW |