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

changeset 7201
f0fc441a0906
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/css3-exclusions/examples/exclusion-writing-modes.html	Mon Jan 21 17:02:00 2013 -0800
     1.3 @@ -0,0 +1,72 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     1.8 +  <title></title>
     1.9 +  <style>
    1.10 +    .ltr {
    1.11 +      position: absolute;
    1.12 +      top: 240px;
    1.13 +      left: 10px;
    1.14 +      width: 190px;
    1.15 +      height: 145px;
    1.16 +      overflow: hidden;
    1.17 +    }
    1.18 +    .ltr > .fake {
    1.19 +      float: right;
    1.20 +      height: 60px;
    1.21 +      width: 90px;
    1.22 +    }
    1.23 +    .rtl {
    1.24 +      position: absolute;
    1.25 +      top: 240px;
    1.26 +      left: 220px;
    1.27 +      width: 190px;
    1.28 +      height: 145px;
    1.29 +      direction: rtl;
    1.30 +      overflow: hidden;
    1.31 +    }
    1.32 +    .rtl > .fake {
    1.33 +      float: left;
    1.34 +      height: 60px;
    1.35 +      width: 90px;
    1.36 +    }
    1.37 +    .ttb {
    1.38 +      position: absolute;
    1.39 +      top: 100px;
    1.40 +      left: 75px;
    1.41 +      height: 160px;
    1.42 +      width: 235px;
    1.43 +      -webkit-writing-mode: vertical-rl;
    1.44 +      writing-mode: tb-rl;
    1.45 +      overflow: hidden;
    1.46 +    }
    1.47 +    .ttb > .fake {
    1.48 +      float: right;
    1.49 +      height: 60px;
    1.50 +      width: 200px;
    1.51 +    }
    1.52 +    .exclusion {
    1.53 +      height: 100px;
    1.54 +      width: 200px;
    1.55 +      border: thin solid red;
    1.56 +      -ms-wrap-flow: start;
    1.57 +      position: absolute;
    1.58 +      top: 200px;
    1.59 +      left: 110px;
    1.60 +    }
    1.61 +  </style>
    1.62 +</head>
    1.63 +<body lang="en">
    1.64 +  <div class="ttb"><div class="fake"></div>
    1.65 +    <p>すべての人は、自己の権利及び義務並びに自己に対する刑事責任が決定されるに当たって、独立の公平な裁判所による公平な公開の審理を受けることについて完全に平等の権利を有する。 </p>
    1.66 +  </div>
    1.67 +  <div class="ltr"><div class="fake"></div>
    1.68 +    <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>
    1.69 +  </div>
    1.70 +  <div class="rtl"><div class="fake"></div>
    1.71 +    <p>لكل إنسان الحق، على قدم المساواة التامة مع الآخرين، في أن تنظر قضيته أمام محكمة مستقلة نزيهة نظراً عادلاً علنياً للفصل في حقوقه والتزاماته وأية تهمة جنائية توجه إليه.</p>
    1.72 +  </div>
    1.73 +  <div class="exclusion"></div>
    1.74 +</body>
    1.75 +</html>
    1.76 \ No newline at end of file

mercurial