Accessibility/Attributes

From MozillaWiki
Jump to navigation Jump to search

Proposed AT-SPI Attribute Support

Attribute name Attribute description Document attribute Object attribute Image attribute Text attribute Default text attribute
W3C-doctype Equivalent to what is specified in the <!DOCTYPE> header Yes
DocURL The location of the current document, including possibly a named anchor jumped to, for example http://www.foo.org#maincontent Yes
MimeType The mime or media type, such as text/plain, text/html, image/jpeg, image/svg+xml, application/xml+xhtml and application/vnd.mozilla.xul+xml. Yes
id A persistant ID for this object, useful for scripting Yes
tag The markup tag used to create this element Yes
xml-roles The exact ARIA role, Used when a dynamic content accessibility role string is used, it is exposed here. This may provide more information than the AT-SPI role, which is best-fit. In the future, this may be a space or comma delimited list of roles ... hopefully not :) Yes
layout-guess "true" when Gecko's heuristic determines that it is a table that is probably used for layout, not for a data table.
Value not set means it is probably a data table.
Only on ROLE_TABLE
level The heading level Only on ROLE_HEADING currently
language What language is this text in, e.g. en-US Yes Yes Yes Yes
static "true" for list bullet/numbering text or layout-inserted text (such as via CSS pseudo styles :before or :after) Yes Yes
misspelled "true" if it is underlined by the inline spell checker for being incorrectly spelled Yes
border not sure how best to expose these properties, or whether to (same with outline CSS property)
bg-color (OOo) or background-color (CSS) Background color as hex value #RRGGBB Yes? Yes Yes
fg-color (OOo) or color (CSS) Foreground color as hex value #RRGGBB Yes Yes
direction rtl or ltr for bidi text Yes Yes
family-name (OOo) or font-family (CSS) The computed font name Yes Yes
left-margin (OOo) In inches, pixels, what? Yes
right-margin (OOo) In inches, pixels, what? Yes
size (OOo) or font-size (CSS) Font size ... in points or what? Yes Yes
style (OOo) or font-style (CSS) italic|oblique Yes Yes
weight (OOo) or font-weight (CSS) The computed font weight, as a number (a percent?) Yes Yes
justification (OOo) or text-align (CSS) center|right|justify Yes
underline+strikethrough (OOo) or text-decoration (CSS) underline|overline|line-through|blink Yes
z-index a number which indicates how low/high an element is Yes Yes