Closed Bug 1484521 Opened 6 years ago Closed 6 years ago

Misplaced list markers with text-align:justify

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 --- unaffected
firefox63 + fixed

People

(Reporter: aguertin+bugzilla, Assigned: xidorn)

References

Details

(Keywords: regression)

Attachments

(3 files)

Attached file Testcase
63.0a1 (2018-08-18) (64-bit), linux

When a ul or ol (or its container) has text-align: justify, the list markers are misplaced. This is a regression, it does not occur in 61.0.2

First noticed using the Brief addon to read RSS feeds.
Attachment #9002280 - Attachment mime type: text/plain → text/html
Narrowed the regression range to between the 2018-08-12-22 and 2018-08-13-10 nightlies.
Best guess: regression from bug 1478178
[Tracking Requested - why for this release]:  This is a layout regression that I'd prefer not to ship.
Assignee: nobody → xidorn+moz
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(xidorn+moz)
Bug 1478178 regressed this case because bullet frame is the last frame
added to line layout, rather than the first, so when we try to apply
justification, we end up giving it the accumulated offset of the whole
line.

Bullet frame has to be added after other frames in the line has been
placed, because its ppresence may depend on whether the line is empty.
However, bullet frame is logically the first element in a line and
appending it to the end is somehow counter-intuitive.

Thus, this patch fixes the issue via prepending bullet frame in line
layout, so that the order of frames there can be a bit more reliable.
Attached file 1484521-testcase.html
Affects `text-align: right` as well, quite predictably.
I think the behavior of `text-align: right` is intentional, or at least not a recent regression. If you think that behavior is wrong, it's probably better file a new bug for it.
You are right; turns out it is in fact bug 25291 from 2000.  Sorry, my bad.
Blocks: 1478178
Comment on attachment 9002373 [details]
Bug 1484521 - Prepend bullet frame in line layout. r=dholbert

Jonathan Kew (:jfkthame) has approved the revision.
Attachment #9002373 - Flags: review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5c420838bf52
Prepend bullet frame in line layout. r=jfkthame
https://hg.mozilla.org/mozilla-central/rev/5c420838bf52
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: