 are used as the surface size with contain:size");

// Create and append a new canvas and immediately check the ratio.
test(function() {
  var canvas = document.createElement("canvas");
  canvas.setAttribute("width", "250");
  canvas.setAttribute("height", "100");
  document.body.appendChild(canvas);
  // Canvases always use the aspect ratio from their surface size.
  assert_ratio(canvas, 2.5);
}, "Canvas width and height attributes are used as the surface size");

test_computed_style("10", "20", "auto 10 /