css3-exclusions/examples/exclusion-writing-modes.html

Mon, 21 Jan 2013 17:02:00 -0800

author
Alan Stearns <stearns@adobe.com>
date
Mon, 21 Jan 2013 17:02:00 -0800
changeset 7201
f0fc441a0906
permissions
-rw-r--r--

[css-exclusions] start/end consistency (bug 16437)

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     5   <title></title>
     6   <style>
     7     .ltr {
     8       position: absolute;
     9       top: 240px;
    10       left: 10px;
    11       width: 190px;
    12       height: 145px;
    13       overflow: hidden;
    14     }
    15     .ltr > .fake {
    16       float: right;
    17       height: 60px;
    18       width: 90px;
    19     }
    20     .rtl {
    21       position: absolute;
    22       top: 240px;
    23       left: 220px;
    24       width: 190px;
    25       height: 145px;
    26       direction: rtl;
    27       overflow: hidden;
    28     }
    29     .rtl > .fake {
    30       float: left;
    31       height: 60px;
    32       width: 90px;
    33     }
    34     .ttb {
    35       position: absolute;
    36       top: 100px;
    37       left: 75px;
    38       height: 160px;
    39       width: 235px;
    40       -webkit-writing-mode: vertical-rl;
    41       writing-mode: tb-rl;
    42       overflow: hidden;
    43     }
    44     .ttb > .fake {
    45       float: right;
    46       height: 60px;
    47       width: 200px;
    48     }
    49     .exclusion {
    50       height: 100px;
    51       width: 200px;
    52       border: thin solid red;
    53       -ms-wrap-flow: start;
    54       position: absolute;
    55       top: 200px;
    56       left: 110px;
    57     }
    58   </style>
    59 </head>
    60 <body lang="en">
    61   <div class="ttb"><div class="fake"></div>
    62     <p>すべての人は、自己の権利及び義務並びに自己に対する刑事責任が決定されるに当たって、独立の公平な裁判所による公平な公開の審理を受けることについて完全に平等の権利を有する。 </p>
    63   </div>
    64   <div class="ltr"><div class="fake"></div>
    65     <p>Everyone is entitled in full equality to a fair and public hearing by an independent and impartial tribunal, in the determination of his rights and obligations and of any criminal charge against him. </p>
    66   </div>
    67   <div class="rtl"><div class="fake"></div>
    68     <p>لكل إنسان الحق، على قدم المساواة التامة مع الآخرين، في أن تنظر قضيته أمام محكمة مستقلة نزيهة نظراً عادلاً علنياً للفصل في حقوقه والتزاماته وأية تهمة جنائية توجه إليه.</p>
    69   </div>
    70   <div class="exclusion"></div>
    71 </body>
    72 </html>

mercurial