layout/generic/test/frame_selection_underline.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 html {
michael@0 2 font-size: 16px;
michael@0 3 }
michael@0 4
michael@0 5 * {
michael@0 6 margin: 0;
michael@0 7 padding: 0;
michael@0 8 }
michael@0 9
michael@0 10 @font-face {
michael@0 11 font-family: "AhemTest";
michael@0 12 src: url(../../../../tests/fonts/Ahem.ttf);
michael@0 13 }
michael@0 14
michael@0 15 @font-face {
michael@0 16 font-family: "mplusTest";
michael@0 17 src: url(../../../../tests/fonts/mplus/mplus-1p-regular.ttf);
michael@0 18 }
michael@0 19
michael@0 20 /* For aligning the two spacers (see below) to the left most and the right most,
michael@0 21 the div must create a new blocking format context. */
michael@0 22 div#target {
michael@0 23 position: absolute;
michael@0 24 }
michael@0 25
michael@0 26 span#decoration {
michael@0 27 margin-left: 0.333em;
michael@0 28 }
michael@0 29
michael@0 30 body.reference div span#decoration {
michael@0 31 text-decoration: underline;
michael@0 32 }
michael@0 33
michael@0 34 /* both ends of selection underlines for IME are clipped for making the
michael@0 35 boundaries of clauses in composition string clear. These spacers will
michael@0 36 cover the ends in the reference. */
michael@0 37 span#leftspacer, span#rightspacer {
michael@0 38 background-color: white;
michael@0 39 position: absolute;
michael@0 40 width: 1px;
michael@0 41 height: 100%;
michael@0 42 overflow: hidden;
michael@0 43 }
michael@0 44
michael@0 45 span#leftspacer {
michael@0 46 left: 0.333em;
michael@0 47 }
michael@0 48
michael@0 49 span#rightspacer {
michael@0 50 right: 0;
michael@0 51 }

mercurial