shorthand style values

That leads to my question: What does the specification means by
"correctly  handle CSS shorthand properties"?

<http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration>
| Furthermore, implementations that support a specific level of CSS
| should correctly handle CSS shorthand properties for that level. For
| a further discussion of shorthand properties, see the
| CSS2Properties interface.

I've noticed that IE9pr3 returns a host object for computed shorthand values

  typeof getComputedStyle(document.body, "").border
  Result: "unknown"

[[Get]] access apart from typeof results in the error that can be
expected from "unknown" type.

  getComputedStyle(document.body, "").border
  Error: Not implemented   {
	message : "Not implemented  "
	description : "Not implemented  "
	number : -2147467263
	name : "Error"
  }

That same error occurs when calling the getPropertyValue method on the
same object.

getComputedStyle is being defined as implementing CSSStyleDeclaration,
for which CSS2Properties provides convenient access.

Is the behavior of IE9 technically incorrect?

Garrett

Received on Thursday, 22 July 2010 07:17:40 UTC