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)
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•8 years ago
|
Component: Untriaged → Layout: Text
Product: Firefox → Core
Updated•8 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•