Closed Bug 1805603 Opened 2 years ago Closed 2 years ago

Confused li marker position with text-align

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

Firefox 108
defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: 94529818, Assigned: dshin)

References

(Regressed 1 open bug)

Details

Attachments

(3 files)

Firefox for Android

Steps to reproduce:

Default li element style list-style-position is outside.
So what's the marker position with text-align:center|right?
<ul>
<li style="text-align:right">test content</li>
<ul>

Actual results:

The marker is placed at near the text on right.

Expected results:

The marker is placed at the block inline-start.
Both Chrome, Edge and Safari displays as this result.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Block and Inline' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Block and Inline
Product: Firefox → Core

I can reproduce, though oddly it seems to fix itself if I add any text-align:left li elements [EDIT: This was wrong, it's actually the presence of a direction:rtl element somewhere that seems to fix things for me. See upcoming reference case.]

Severity: -- → S3
Component: Layout: Block and Inline → Layout: Generated Content, Lists, and Counters
Attached file testcase 1

dshin or tlouw might be interested to take a look, if they have cycles & are interested to pick up a (hopefully) small correctness bug.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Code of interest is around where we align inline frames. Looks like we should not be shifting marker frames.
Having RTL present in the document activates unicode-bidi, which happens to do reordering and take markers into account instead of shifting all frames.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a8628fe4290e When aligning inline frames for `text-align`, ignore marker frames. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37741 for changes under testing/web-platform/tests
Regressions: 1808363
Upstream PR was closed without merging
See Also: → 1808393
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/616a6f1689dc When aligning inline frames for `text-align`, ignore marker frames. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(dshin)
Regressions: 1808806
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: