Line offsets incorrect for block followed by list

NEW
Unassigned

Status

()

Core
Disability Access APIs
2 years ago
10 months ago

People

(Reporter: Jamie, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Str:
1. Open this URL: data:text/html,<div>block</div><ul><li>li</li></ul>
2. Retrieve the accessible for the document.
3. Retrieve the line offsets at offset 0.
Expected: (0, 1)
Actual: (0, 2)
4. Retrieve the line offsets at offset 1.
Result (correct): (1, 2)

Impact: This causes ATs to report that the list is part of the line with the block when it isn't.

Comment 1

10 months ago
here's an example how a test may be constructed: https://dxr.mozilla.org/mozilla-central/source/accessible/tests/mochitest/text/test_lineboundary.html#33,34-36

as long as we have a test case, the next step is to figure out where's out expectations are broken, I suppose that a start point for the debugging could be at HyperTextAccessible::FindOffset.
You need to log in before you can comment on or make changes to this bug.