Skip to content

Commit

Permalink
Use Ahem for these tests. (#16137)
Browse files Browse the repository at this point in the history
Safari renders incorrectly these cases due to a bug (https://webkit.org/b/196169) when using monospace font.
  • Loading branch information
javifernandez authored Mar 29, 2019
1 parent cf54e24 commit 3ad4a3b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<style>
div {
font-family: monospace;
font-family: Ahem;
color: transparent;
font-size: 50px;
background: green;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
div {
color: transparent;
background: blue;
font-family: monospace;
font-family: Ahem;
font-size: 50px;
width: 3ch;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<style>
div {
font-family: Ahem;
color: transparent;
font-size: 50px;
background: green;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
div {
color: transparent;
font-family: monospace;
font-family: Ahem;
font-size: 50px;
width: 5ch;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
aside:last-of-type { overflow-wrap: break-word; }
div {
font-family: monospace;
font-family: Ahem;
color: transparent;
font-size: 50px;
width: 0ch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
div {
color: transparent;
font-family: monospace;
font-family: Ahem;
font-size: 50px;
width: 3ch;
/* both floats should take the full 3ch,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
}
div {
color: transparent;
font-family: Ahem;
font-size: 50px;
width: 0ch;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
aside:last-of-type { overflow-wrap: break-word; }
div {
color: transparent;
font-family: monospace;
font-family: Ahem;
font-size: 50px;
width: 3ch; /* enough room for both floats if their max-content size does not include the preserved spaces,
but not enough if they do, causing a line break in that case. */
Expand Down

0 comments on commit 3ad4a3b

Please sign in to comment.