eateRuleWithDeclaredStyleMap(t);

  styleMap.set('margin', '1px 2px 3px 4px');

  assert_equals(elem.style.getPropertyValue('margin'), '1px 2px 3px 4px');
  assert_equals(elem.style.getPropertyValue('margin-top'), '1px');
  assert_equals(elem.style.getPropertyValue('margin-right'), '2px');
  assert_equals(elem.style.getPropertyValue('margin-bottom'), '3px');
  assert_equals(elem.style.getPropertyValue('margin-left'), '4px');
}, 'Setting a shorthand with a string updates css rule');

</script>
