Closed Bug 1853255 Opened 1 year ago Closed 1 year ago

Text bounds incorrect for inline list items

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: morgan, Assigned: morgan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. 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>
  2. 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: nobody → mreschenberg
Severity: -- → S3

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.

Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf2c8ac2f33c Make parent relative bounds for IB-split descendants account for the parent's bounding box offset r=Jamie
Backout by nerli@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/cd0e27f1d45b Backed out changeset cf2c8ac2f33c for causing failures in Browser_zero_area.js CLOSED TREE
Flags: needinfo?(mreschenberg)
Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/589a7a37c2f9 Make parent relative bounds for IB-split descendants account for the parent's bounding box offset r=Jamie
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
QA Whiteboard: [qa-120b-p2]
See Also: → 1867895
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: