Re: [csswg-drafts] [css-text] Clarify line breaking for atomic inlines within `white-space: nowrap` (#12491)

https://www.w3.org/TR/css-text-3/#line-break-details states:
> For soft wrap opportunities defined by the boundary between two characters or [atomic inlines](https://www.w3.org/TR/css-display-3/#atomic-inline), the [white-space](https://www.w3.org/TR/css-text-3/#propdef-white-space) property on the nearest common ancestor of the two characters controls breaking;

In the example above, the boundary is between "r" and "o", and the nearest common ancestor of the two is the parent div, which uses the initial value for the `white-space` property. I would therefore expect wrapping to be allowed, and consider the firefox behavior to be a spec violation.

The situation would be different if the `<span style="white-space: nowrap">` itself contained text.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12491#issuecomment-3083376010 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 17 July 2025 09:42:10 UTC