Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-ui] Add test for interaction between text-overflow and bidi
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<meta charset="utf-8"> | ||
<title>CSS Basic User Interface Reference</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<style> | ||
div { font: 20px monospace; } | ||
</style> | ||
|
||
<div>Test passed…</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<meta charset="utf-8"> | ||
<title>CSS Basic User Interface Test: text-overflow and bidi interaction</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<link rel="help" href="http://www.w3.org/TR/css-ui-3/#text-overflow"> | ||
<link rel="help" href="http://www.w3.org/TR/css-ui-4/#text-overflow"> | ||
<link rel="match" href="reference/text-overflow-029-ref.html"> | ||
<meta name="assert" content="When there's content of mixed directionality, text-overflow ellides the characters at the physical end of the line."> | ||
<meta name="flags" content=""> | ||
<style> | ||
div { | ||
font: 20px monospace; | ||
width: 12.3ch; /* slightly more than 12ch because in some browsers (safari) the ellipsis is slightly large than other characters, even in monospace fonts. */ | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
} | ||
</style> | ||
|
||
<div>Test ‮deliafdessap‬</div> |