The background shorthand property does not return an empty string when you view a webpage in Internet Explorer 9

Article translations Article translations
Article ID: 2565076 - View products that this article applies to.
Expand all | Collapse all

On This Page


You have a webpage in which you have specified the background-image, background-position, background-attachment, and background-repeat sub-properties. In this case, when you use Windows Internet Explorer 9 to browse the webpage, you notice that the value of the background shorthand property (style.background) reflects these four sub-properties instead of returning an empty string. 

  • This issue occurs in Quirks mode, in Strict mode, and in Internet Explorer 8 document mode.
  • The returned background shorthand property value is valid. This issue only affects code that depends on the presence of a non-empty style.background value to detect whether all background sub-properties are set.


This issue occurs when all background sub-properties are set except the background-color sub-property.


Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft website:
For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft website:
Note This update was first included in security update 2530548 (MS11-050). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2530548 MS11-050 Cumulative security update for Internet Explorer: June 14, 2011


For more information, visit the following Microsoft website:
Defining Document Compatibility


Article ID: 2565076 - Last Review: June 22, 2011 - Revision: 1.0
  • Windows Internet Explorer 9
kbautohotfix kbqfe kbhotfixserver kbfix KB2565076

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from