Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created April 22, 2012 21:35
Show Gist options
  • Save LeaVerou/2467073 to your computer and use it in GitHub Desktop.
Save LeaVerou/2467073 to your computer and use it in GitHub Desktop.
WebKit bug testcase: calc() is dropped from CSSOM
/**
* WebKit bug testcase: calc() is dropped from CSSOM
*/
<script>
document.body.style.width = 'calc(100% - 10px)';
document.body.style.width = '-webkit-calc(100% - 10px)';
document.body.style.width = '-moz-calc(100% - 10px)';
document.write('"' + document.body.style.width + '"');
</script>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment