<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function runTests() | |
{ | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
var pre = document.querySelector('pre'); | |
pre.style.backgroundPosition = 'left calc(10% + 20px) bottom calc(30px + 40%)'; | |
pre.innerText += getComputedStyle(pre).backgroundPosition; | |
} | |
</script> | |
</head> | |
<body onload="runTests();"> | |
<p>Test calling on background-position property specified with calc on computed styles.</p> | |
<pre id="console"></pre> | |
</body> | |
</html> |