OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script type="text/javascript"> | |
5 | |
6 function runTests() | |
7 { | |
8 if (window.testRunner) | |
9 testRunner.dumpAsText(); | |
10 var pre = document.querySelector('pre'); | |
11 pre.style.backgroundPosition = 'left calc(10% + 20px) bottom calc(30 px + 40%)'; | |
12 pre.innerText += getComputedStyle(pre).backgroundPosition; | |
13 } | |
14 </script> | |
15 </head> | |
16 <body onload="runTests();"> | |
17 <p>Test calling on background-position property specified with calc on compu ted styles.</p> | |
18 <pre id="console"></pre> | |
19 </body> | |
20 </html> | |
OLD | NEW |