Skip to content

Commit

Permalink
Add safari text-wrap balance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland committed May 14, 2024
1 parent 929aec3 commit 2b09ee3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 2024/safari-text-wrap-balance-issue.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title>Safari text-wrap: balance issue</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
margin-inline: auto;
max-width: 500px;
text-wrap: balance;
}

span {
background: lightblue;
padding: 5px;
line-height: 2;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
</style>
</head>
<body>
<p>
<span>`text-wrap: balance` fails in Safari 17.5. when the selected element has a child with `-webkit-box-decoration-break: clone;` </span>
</p>
</body>
</html>

0 comments on commit 2b09ee3

Please sign in to comment.