= createInlineStyleMap(t, '');
  styleMap.clear();
  assert_array_equals([...styleMap], []);
}, 'Clearing an empty inline style is a no-op');

test(t => {
  let styleMap = createInlineStyleMap(t, '--foo: auto; width: 10px; transition-duration: 1s, 2s');

  styleMap.clear();
  assert_equals(styleMap.get('--foo'), undefined,
    'Custom properties should be cleared');
  assert_equals(styleMap.get('width'), undefined,
    'CSS properties should be cleared');
  assert_equals(styleMap.get('transition-duration'),