-
Notifications
You must be signed in to change notification settings - Fork 719
[css-text-3] Disambiguation about soft wrap opportunities around replaced elements #9964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Another place that almost but not quite defines this (in the same direction) may be this:
Here, the soft wrap opportunity before and after each replaced element is the first or last thing in a box, but not the first/last character in a box. So we could also fix this with the following addition:
|
The CSS Working Group just discussed
The full IRC log of that discussion |
…nes at element boundary, a=testonly Automatic update from web-platform-tests Tests for line breaking around atomic lines at element boundary See w3c/csswg-drafts#9964 -- wpt-commits: 609801f34c3d7098c1799dd131355c3b065322ab wpt-pr: 46489
…nes at element boundary, a=testonly Automatic update from web-platform-tests Tests for line breaking around atomic lines at element boundary See w3c/csswg-drafts#9964 -- wpt-commits: 609801f34c3d7098c1799dd131355c3b065322ab wpt-pr: 46489
Should there be a soft wrap opporunity in the middle of the following divs?
Currently, we don't have interop, with Chrome and Safari allowing a break, and Firefox not.
I believe that the spec is not clear. The parts that seem relevant but don't actually spell it out clearly would be the following two points from https://drafts.csswg.org/css-text-4/#line-break-details:
The goal of the first rule quoted above is to make replaced elements / atomic inlines break more than other things. The Firefox implementation makes then break less than ideographs, which goes against that expectation.
But I think a literal interpretation of the spec falls short of saying what to do, because:
So I think we should clarify that the Chrome/Webkit behavior is the intended one, and do so with the following two additions:
The text was updated successfully, but these errors were encountered: