Open Bug 1366530 Opened 8 years ago Updated 2 years ago

Space distribution with text-align:justify depends on inline elements

Categories

(Core :: Layout: Text and Fonts, defect, P3)

52 Branch
defect

Tracking

()

People

(Reporter: hg, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20170428070431 Steps to reproduce: Two paragraphs with text-align:justify. Same content but a <span> in one of the paragraph: <!DOCTYPE html> <html> <head> <style> body { font-size: 30px; text-align:justify; background-color:white; } </style> </head> <body> <p> aaaaaaa bbbbbb cccccc dddddd eeeee </p> <p> aaaaaaa bbbbbb <span>cccccc</span> dddddd eeeee </p> </body> </html> Actual results: The space is not distributed the same way in both paragraphs. See attached html and image. There is an extra space after "cccccc" that was not collapsed with the line break. Expected results: Both paragraphs should look identical. It's the case with Edge and Safari.
Component: Untriaged → Layout: Text
Product: Firefox → Core
Attached file 1366530.html
Priority: -- → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1605265
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: