Accessibility/WebAccessibilityAPI: Difference between revisions

Jump to navigation Jump to search
Line 1,035: Line 1,035:
==Geometry==
==Geometry==


[
Outline can be drawn around a range defined by two positions.
 
AT needs to draw outline for a range between two points (positions). No other use cases I'm aware of, so it might be better to provide 'outline' method like
<pre>
<pre>
partial interface AccessibleDocument {
partial interface AccessibleDocument {
Line 1,044: Line 1,042:
};
};
</pre>
</pre>
It's tricky how to style that but maybe document or accessible should decide how it should be styled, for example, black outline on black background.


]
 
<code>
AccessibleDocument .''outline''
::Outlines a range bounded by two positions.
 
AccessibleDocument .''clearOutlines''
::Removes all drawn outlines.
</code>




<pre>
<pre>
partial interface AccessiblePos {
partial interface AccessiblePos {
   readonly attribute Rect getBoundingRect(AccessiblePos pos);
   readonly attribute DOMPoint coordinate;
   readonly attribute sequence<Rect> getRects(AccessiblePos pos);
   readonly attribute unsigned long distanceBetween(AccessiblePos pos2);
};
};
</pre>
</pre>


<code>
<code>
AccessiblePos .''getBoundaringRect''
AccessiblePos .''coordinate''
::Returns a rect bounding the content enclosed by this and the given position.
::Returns a DOM point for top left corner of the accessible position.
</code>
</code>


<code>
<code>
AccessiblePos .''getRects''
AccessiblePos .''distanceBetween''
::Returns a list of rects bounding the content enclosed by this and the given position.  
::Returns a distance between this and given accessible position.
</code>
</code>


Questions/concerns
*It's tricky how to style that but maybe document or accessible should decide how it should be styled, for example, black outline on black background.


===Hit testing===
===Hit testing===
Confirmed users
1,396

edits

Navigation menu