Open Bug 1789513 Opened 3 years ago Updated 2 years ago

Firefox does not position inline ::after content, after the content if a line break occurs

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

defect

Tracking

()

People

(Reporter: twisniewski, Unassigned)

References

()

Details

Attachments

(1 file)

Attached file testcase.html

See the attached test-case. If a line-wrap occurs in the element, Firefox will place the red box (::after content) at the start of the gray anchor's text, not after it. Chrome and Safari seem to always place it after the content.

This is causing the arrows on the right side of the table at the Australian USA embassy's passport locations page to overlap the text, depending on whether the text wraps, as reported on webcompat.com.

(Note - on Ubuntu 20.04, the font chosen doesn't cause the line-wrap. Adjusting font size/putting the entire text into the anchor tag reproduces the behaviour)

Triggering this behaviour on debug build emits a warning message

Severity: -- → S3

The site design has changed, so the original issue is not reproducible anymore, but the difference in the testcase is still present, at least on MacOS, so keeping this open.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: