Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/white-space/text-wrap-balance-bidi-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS test: balancing keeps the letter order of a paragraph after a forced break</title>
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#valdef-unicode-bidi-plaintext">
<link rel="match" href="reference/text-wrap-balance-bidi-002-ref.html">
<meta name="assert" content="When balancing moves the text of a paragraph into another text frame, the text keeps the order of its own direction.">
<style>
div {
width: 320px;
font: 20px sans-serif;
unicode-bidi: plaintext;
white-space: pre-line;
overflow-wrap: break-word;
text-wrap: balance;
}
</style>
<div><span>Hello!
שלום!</span></div>
<div><span>שלום!
Hello!</span></div>