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/line-break/line-break-shaping-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: line-break:anywhere and text-shaping</title>
<link rel="match" href="reference/line-break-shaping-001-ref.html">
<meta name="assert" content="Shaping characters are still shaped as if the word were not broken when a line is broken by line-break:anywhere">
<style>
@font-face {
font-family: 'csstest_noto';
src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
}
div {
font-family: 'csstest_noto';
font-size: 4em;
}
section {
float: left; /* to sizing to the intrinsic min of the ref box*/
position: relative;
}
#ref {
border: solid orange;
margin: 1rem;
}
#test {
border: solid blue;
position: absolute; /* to avoid influencing the size of the section */
left: 1rem;
right: 1rem;
line-break: anywhere;
}
</style>
<p>Test passes if the blue and organge boxes are identical. Pay attention to characters at the left of the first line, and on the second line.
<section>
<div dir=rtl lang=ar id=ref>ﻋﺎﺋﻠ<br>ﺔ</div>
<div dir=rtl lang=ar id=test>عائلة</div>
</section>