Account for parent accs with no frame in bounds caching impl
Categories
(Core :: Disability Access APIs, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox95 | --- | fixed |
People
(Reporter: morgan, Assigned: morgan)
References
Details
Attachments
(1 file)
Jamie's phab comment describing this below :)
If the parent doesn't have a frame but the grandparent (or some other ancestor) does, I think this will break the coordinates, since we're getting root-relative coordinates here. When we calculate bounds in RemoteAccessible::Bounds, we'll add the root-relative coords here, then keep walking up the ancestry adding more coordinates... but we already had root-relative coordinates!
If we're going to use root-relative coordinates, I think we need to push some flag indicating that RemoteAccessible shouldn't add bounds from the ancestry for this Accessible.
Alternatively, we could find the nearest parent Accessible with a frame and use that here.
As to when this actually matters, display: contents will cause an Accessible to have no frame:
data:text/html,<div>before<ul style="display: contents;"><li style="display: contents;">item
The div will have a frame, the ul and the li won't, but the "item" text will have a frame. So, we'll use root-relative coordinates for the "item" TextLeafAccessible, but end up adding the div coordinates as well.
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 3•4 years ago
|
||
| bugherder | ||
Description
•