layout/reftests/bidi/bidi-006.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <!-- Bidi reftest 006: rtl text with diacritics. This is hard to reftest
michael@0 3 because if there is a bug it will typically be exhibited in the reference
michael@0 4 rendering as well as in the test. The approach adopted here is to
michael@0 5 position boxes around the edges of the character without a diacritic and
michael@0 6 make sure that the character with the diacritic displays in the same
michael@0 7 space, so that if the diacritic is shifted to the right or left it will
michael@0 8 be cut off in the test rendering and be visible (in the wrong place) in
michael@0 9 the reference rendering.
michael@0 10
michael@0 11 Relevant bugs:
michael@0 12 378351 (Windows)
michael@0 13 386573 (Mac)
michael@0 14 387653 (Linux)
michael@0 15 395676 (Windows)
michael@0 16 -->
michael@0 17 <html>
michael@0 18 <head>
michael@0 19 <meta http-equiv="content-type" content="text/html; charset=utf-8">
michael@0 20 </head>
michael@0 21 <style type="text/css">
michael@0 22 body { background: white; color: black; }
michael@0 23 p {
michael@0 24 font-family: sans-serif;
michael@0 25 font-size: 36px;
michael@0 26 margin: 0;
michael@0 27 }
michael@0 28 span {
michael@0 29 display: inline-block;
michael@0 30 width: 3em;
michael@0 31 height: 3em;
michael@0 32 margin-top: -2em;
michael@0 33 vertical-align: bottom;
michael@0 34 background: white;
michael@0 35 }
michael@0 36 /* borders should be covered by overhang */
michael@0 37 p#test {
michael@0 38 border-left: 3em solid red;
michael@0 39 border-right: 3em solid red;
michael@0 40 width: -moz-max-content;
michael@0 41 width: intrinsic;
michael@0 42 }
michael@0 43 </style>
michael@0 44 <body>
michael@0 45 <p id="test">&#x5e0;&#x5b8;</p>
michael@0 46 <p id="overhang"><span></span>&#x5e0;<span></span></p>
michael@0 47 </body>
michael@0 48 </html>

mercurial