CSS3 calc() test (v14)

Revision 14 of this benchmark created by pokrishka on


Preparation HTML

<div id="test"></div>

Setup

var block = document.getElementById("test");

Teardown



            block.innerHTML = "";
        
  

Test runner

Ready to run.

Testing in
TestOps/sec
t
block.innerHTML = "<div><div style='width: 800px; margin: 0 auto'>Dong</div><div>"
ready
t2
block.innerHTML = "<div style='padding: 0 calc((100% - 800px)/2)'>Dong<div>"
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.