Partager via


About Invisible Objects

This section describes the additional state information that is available for invisible objects with Microsoft Internet Explorer 6 and later.

Objects are invisible when:

With Internet Explorer 6 and later, the pvarState parameter of the IAccessible::get_accState property receives STATE_SYSTEM_OFFSCREEN when the object is invisible because of scrolling and receives STATE_SYSTEM_INVISIBLE when the object is invisible because its IHTMLStyle::visibility property is set to hidden, or its IHTMLStyle::display property is set to none. With earlier versions of Windows Internet Explorer, pvarState always receives STATE_SYSTEM_INVISIBLE when an object is invisible.

Note  The pvarState parameter of the IAccessible::get_accState property does not receive STATE_SYSTEM_INVISIBLE for frame objects with their Dynamic HTML (DHTML) IHTMLFrameElement2::height or IHTMLFrameElement2::width or their Cascading Style Sheets (CSS) IHTMLStyle::height or IHTMLStyle::width set to 0. Your accessibility aid should check frame objects for a 0 height or width, and represent all the elements in that frame as not visible.