document.body.offsetHeight;
var index = 0;
- PerfTestRunner.measureRunsPerSecond({run: function() {
- document.body.style.width = ++index % 2 ? "99%" : "98%";
- document.body.offsetHeight;
- }});
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of layout on a page using CSS grid layout (fixed).",
+ run: function() {
+ document.body.style.width = ++index % 2 ? "99%" : "98%";
+ document.body.offsetHeight;
+ }
+ });
}
</script>
</head>