sorting');

test(function(t) {
  var sheet = makeSheet(t);
  sheet.insertRule('@media screen and (max-width: 0px), screen and (color) {}');

  assert_equals(sheet.cssRules.length, 1);
  assert_equals(
    sheet.cssRules[0].cssText,
    '@media screen and (max-width: 0px), screen and (color) {\n}'
  );
}, 'media query list');

test(function(t) {
  var sheet = makeSheet(t);
  sheet.insertRule('@media print {}');

  assert_equals(sheet.cssRules.length, 1);
  sheet.cssRules[0].insertRule('#foo { z-index: 23; fl