mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
This property is used by approximately 55% of page loads. To implement the line breaking behavior, the "breaking strategy" has been cleaned up and abstracted. This should allow us to easily support other similar properties in the future, such as `text-overflow` and `word-break`.
29 lines
417 B
HTML
29 lines
417 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that `overflow-wrap: break-word` breaks words if it needs to, but only when
|
|
necessary. -->
|
|
<style>
|
|
section, nav {
|
|
background: purple;
|
|
position: absolute;
|
|
left: 0;
|
|
}
|
|
section {
|
|
width: 100px;
|
|
top: 0;
|
|
height: 100px;
|
|
}
|
|
nav {
|
|
top: 100px;
|
|
width: 300px;
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section></section><nav></nav>
|
|
</body>
|
|
</html>
|
|
|