Skip to content

Commit

Permalink
Disambiguate line breaks around atomic inlines at element boundaries
Browse files Browse the repository at this point in the history
Fixes #9964
  • Loading branch information
frivoal committed May 27, 2024
1 parent a1e53bb commit 1839d5c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
23 changes: 22 additions & 1 deletion css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ Line Breaking Details</h3>
that disappear at the line break (e.g. U+0020 SPACE),
properties on the box directly containing that character
control the line breaking at that opportunity.
For [=soft wrap opportunities=] defined by the boundary between two characters,
For [=soft wrap opportunities=] defined by the boundary between two characters or [=atomic inlines=],
the 'white-space' property
on the nearest common ancestor of the two characters
controls breaking;
Expand All @@ -3512,6 +3512,10 @@ Line Breaking Details</h3>
word-break/word-break-break-all-inline-004.tentative.html
word-break/word-break-break-all-inline-007.tentative.html
word-break/word-break-break-all-inline-010.tentative.html

line-breaking/line-breaking-030.html
line-breaking/line-breaking-031.html
line-breaking/line-breaking-032.html
</wpt>

<li>
Expand Down Expand Up @@ -8477,6 +8481,23 @@ Recent Changes</h3>
<wpt title="This is an authoring requirement, tests not needed">
</wpt>

* Disambiguate soft wrap opportunities around replaced elements.
(<a href="https://github.com/w3c/csswg-drafts/issues/9964">Issue 9964</a>)

<blockquote>
For [=soft wrap opportunities=] defined by the boundary between two characters<ins> or [=atomic inlines=]</ins>,
the 'white-space' property
on the nearest common ancestor of the two characters
controls breaking;
</blockquote>

<wpt>
line-breaking/line-breaking-030.html
line-breaking/line-breaking-031.html
line-breaking/line-breaking-032.html
</wpt>


In addition there have been some minor editorial fixes.

<h3 class="no-num" id="old-changes">
Expand Down
8 changes: 7 additions & 1 deletion css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5834,7 +5834,7 @@ Line Breaking Details</h3>
that disappear at the line break (e.g. U+0020 SPACE),
properties on the box directly containing that character
control the line breaking at that opportunity.
For [=soft wrap opportunities=] defined by the boundary between two characters,
For [=soft wrap opportunities=] defined by the boundary between two characters or [=atomic inlines=],
the 'white-space' property
on the nearest common ancestor of the two characters
controls breaking;
Expand All @@ -5860,6 +5860,10 @@ Line Breaking Details</h3>
word-break/word-break-break-all-inline-004.tentative.html
word-break/word-break-break-all-inline-007.tentative.html
word-break/word-break-break-all-inline-010.tentative.html

line-breaking/line-breaking-030.html
line-breaking/line-breaking-031.html
line-breaking/line-breaking-032.html
</wpt>

<li>
Expand Down Expand Up @@ -13151,6 +13155,8 @@ Changes</h2>
* Loosened requirement about not changing lines for ''text-wrap-style: balance''
for cases with large numbers of lines.
(<a href="https://github.com/w3c/csswg-drafts/issues/10186">Issue 10186</a>)
* Disambiguate soft wrap opportunities around replaced elements.
(<a href="https://github.com/w3c/csswg-drafts/issues/9964">Issue 9964</a>)
Significant changes since the <a href="https://www.w3.org/TR/2023/WD-css-text-4-20231020/">20 October 2023 Working Draft</a> include:
* Restored accidentally deleted “and each line after a [=forced line break=]”
Expand Down

0 comments on commit 1839d5c

Please sign in to comment.