Text bounds incorrect for inline list items
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: morgan, Assigned: morgan)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
STR:
data:text/html,<style>ul,li { display:inline; list-style-type: none;list-style-position:inside;margin:0;padding:0; }</style><div style="background:green; max-width: 400px;">List of information: <ul><li>item one</li> | <li>item two</li> | <li>item three</li> | <li>item four</li> | <li>item five</li></ul></div>
- Using VO, step into the list and navigate by item
Expected:
VO cursor bounds each item of the list tightly
Actual:
VO cursor is offset by the length of "List of information: " in the X direction. We construct the parent bounding box by drawing a tightly fitting rectangle over all child content. This makes the bounding box's origin X = min(x coord of each child's origin), Y= min(y coord of each child's origin). We then layout each child relative to that point.
This is broken because the actual DOM origin of the list is not computed with min(X, Y of children), it is the point at which the list begins, on the line it begins in (ie. not across lines).
I think the fix here is to compute the bounding box later and/or add any offsets we make to the original origin into the child origins.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
As discussed with Morgan on Zoom, another possible fix is to make this ib-split-sibling chain case apply more broadly. Long term, this might be another reason to consider moving away from parent relative offsets and instead having offsets be relative to scroll containers, etc.
Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
Backed out changeset cf2c8ac2f33c (Bug 1853255) for causing failures in Browser_zero_area.js CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=429755214&repo=autoland&lineNumber=4252
Backout: https://hg.mozilla.org/integration/autoland/rev/99ce25d5fce69cdcd82730acccd8bae8e987e548
Comment 6•1 year ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/99ce25d5fce6
Assignee | ||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
bugherder |
Updated•1 year ago
|
Description
•