Open
Bug 1366530
Opened 9 years ago
Updated 1 year ago
Space distribution with text-align:justify depends on inline elements
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Core
Layout: Text and Fonts
Tracking
()
NEW
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.
Updated•9 years ago
|
Component: Untriaged → Layout: Text
Product: Firefox → Core
Updated•9 years ago
|
Priority: -- → P3
Updated•8 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•3 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Version: 52 Branch → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•