Skip to content

[css-text] Introduce a text-wrap-style value focused on orphans #10837

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

Merged
merged 9 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[css-text] Add some notes about reduce-orphans
  • Loading branch information
frivoal committed Sep 5, 2024
commit 75b9d6ff18e087d80f5b38fcfb1e8f184d8e8082
12 changes: 12 additions & 0 deletions css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5646,6 +5646,18 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
beyond what ''text-wrap-style/auto''
if that comes at a significant performance cost.

Note: In western typography, an “orphan” typically refers to a single word on the last line of a paragraph.
However, not all languages or writing systems wrap lines at word boundaries,
and even in languages that do,
a few very short words on the last line may still be undesirable,
especially if the available inline space is long.
This specification does not therefore strictly define
lines to be too short only when they are composed a single word,
and lets the user agent be the judge of what is excessively short.

Note: See also the 'orphans' property for control over fragmentation
and the other typographic meaning of “orphans”.

<div class=example>
For instance, with the given line length, the following test would be wrapped with a single word on the last line,
which could be judged too short.
Expand Down