mirror of
https://github.com/servo/servo.git
synced 2025-06-12 02:14:41 +00: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`.
22 lines
380 B
HTML
22 lines
380 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that `overflow-wrap: break-word` breaks words if it needs to, but only when
|
|
necessary. -->
|
|
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
}
|
|
section {
|
|
word-wrap: break-word;
|
|
width: 300px;
|
|
color: purple;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section>X XXXXXX</section>
|
|
</body>
|
|
</html>
|
|
|