Open Bug 1979512 Opened 27 days ago Updated 11 days ago

Adding a span around a word breaks text-align justify

Categories

(Core :: Layout: Block and Inline, defect)

Firefox 142
defect

Tracking

()

UNCONFIRMED

People

(Reporter: kizmarh, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0

Steps to reproduce:

  1. Open https://codepen.io/kizu/pen/qEOaRVL or the attached .html
  2. Look at the second “not ok” example.

Actual results:

The 111111 string is not flush with the right edge.

Expected results:

The 111111 string should be flush with the right edge: the context has text-align: justify, and a span without any styles on it around a word should not affect anything. Both Chrome and Safari render this example as expected.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Block and Inline' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Block and Inline
Product: Firefox → Core

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(emcdonough)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: