Open Bug 1262910 Opened 9 years ago Updated 3 years ago

Pseudo-element ::before and ::after width is wrong when parent element is justified text

Categories

(Core :: Layout: Positioned, defect, P3)

45 Branch
defect

Tracking

()

People

(Reporter: mail, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160304114936 Steps to reproduce: Wrote some HTML. Actual results: When an element containing text is stretched because of 'text-align: justify', its pseudo-elements ::before and ::after take on the width the element would have had without justification when the width is set to 100%. Attached reproduction case illustrates this problem. Expected results: The pseudo-elements width should match that of their parent when set to 100%.
Attached image Screenshot of the bug
Screenshot of the bug, should match what you see in reproduction case.
Summary: Pseudo-element width is wrong when parent element is justified text → Pseudo-element ::before and ::after width is wrong when parent element is justified text
Component: Untriaged → Layout: Text
Product: Firefox → Core
Still an issue in firefox 60.0.2, doesn't happen in other browsers.
Huh, why do other browsers not honor the pseudo background / borders?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(emilio)

So other browsers get it right only when they're not breaking. This is possibly due to how we reflow abspos of inlines (bug 255139).

Severity: normal → S3
Flags: needinfo?(emilio)
Priority: -- → P3
See Also: → 255139
Component: Layout: Text and Fonts → Layout: Positioned
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: