Skip to content

Commit

Permalink
Add a test for white-space: break-spaces
Browse files Browse the repository at this point in the history
This is based on a test in
https://bugs.chromium.org/p/chromium/issues/detail?id=1261435 and
required for Interop 2023.
  • Loading branch information
jgraham committed Jan 12, 2023
1 parent 90c7e60 commit d4b9937
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions css/css-text/text-align/text-align-whitespace-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<link rel="match" href="text-align-whitespace-ref.html">
<style>
.test {
display: block;
margin: 1em;
font-family: monospace;
width: 31ch;
border: 1px solid;
white-space: pre-wrap;
white-space: break-spaces;
}
</style>
<code class="test">
style={{ lineHeight: <span>'100px'</span> }}</code>
15 changes: 15 additions & 0 deletions css/css-text/text-align/text-align-whitespace.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<link rel="match" href="text-align-whitespace-ref.html">
<style>
.test {
display: block;
margin: 1em;
font-family: monospace;
width: 31ch;
border: 1px solid;
white-space: pre-wrap;
white-space: break-spaces;
}
</style>
<code class="test">
style={{ lineHeight: '100px' }}</code>

0 comments on commit d4b9937

Please sign in to comment.