Skip to content

Commit

Permalink
[css-ui] Add test for interaction between text-overflow and bidi
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal authored and fantasai committed Feb 6, 2018
1 parent da3f289 commit 3f2e76d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/css-ui/reference/text-overflow-029-ref.html
@@ -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>
21 changes: 21 additions & 0 deletions css/css-ui/text-overflow-029.html
@@ -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 &#x202E;deliafdessap&#x202C;</div>

0 comments on commit 3f2e76d

Please sign in to comment.