 CSSStyleValue' },
  { property: 'margin', values: ['10s'], desc: 'an invalid String' },
];

for (const {property, values, desc} of gInvalidTestCases) {
  test(t => {
    let styleMap = createInlineStyleMap(t, '');
    assert_throws_js(TypeError, () => styleMap.set(property, ...values));
  }, 'Setting a shorthand with ' + desc + ' on css rule throws TypeError');
}

test(t => {
  let [elem, styleMap] = createRuleWithDeclaredStyleMap(t, 'margin: 1px 2px 3px 4px');

  const result = styleMap.get('margin');
  e