OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 h5 { |
| 6 margin: 0; |
| 7 } |
| 8 |
| 9 .container { |
| 10 position: relative; |
| 11 left: 150px; |
| 12 font-size: 0.8em; |
| 13 } |
| 14 |
| 15 .main { |
| 16 width: 400px; |
| 17 } |
| 18 |
| 19 .relative { |
| 20 position: relative; |
| 21 } |
| 22 |
| 23 .fixed { |
| 24 position: fixed; |
| 25 } |
| 26 |
| 27 .green { |
| 28 background-color: lime; |
| 29 } |
| 30 |
| 31 .blue { |
| 32 background-color: cyan; |
| 33 } |
| 34 |
| 35 .grey { |
| 36 background-color: silver; |
| 37 } |
| 38 |
| 39 .rtl { |
| 40 direction: rtl; |
| 41 } |
| 42 |
| 43 .inline { |
| 44 display: inline-block; |
| 45 } |
| 46 </style> |
| 47 </head> |
| 48 <body> |
| 49 <h3>Test for chromium bug : <a href="https://code.google.com/p/chromium/issu
es/detail?id=31286">31286</a>. css rendering bug : fixed-position-element and 'l
eft'.</h3> |
| 50 <p>If fixed position inline element does not have left and/or right position
then it should render as normal flow.</p> |
| 51 |
| 52 <h5>Case 1: fixed text box (blue) should be just after relative text box (gr
een).</h5> |
| 53 <div class="container"> |
| 54 <div class="main relative green" style="left: 100px;"> |
| 55 relative<div class="inline blue">fixed</div> |
| 56 </div> |
| 57 </div> |
| 58 |
| 59 <h5>Case 2: fixed text box (blue) should be just before relative text box (g
reen).</h5> |
| 60 <div class="container"> |
| 61 <div class="main relative green rtl" style="left: 100px;"> |
| 62 relative<div class="inline blue">fixed</div> |
| 63 </div> |
| 64 </div> |
| 65 |
| 66 <h5>Case 3: fixed text box (blue) should be just after relative text box (gr
een).</h5> |
| 67 <div class="container"> |
| 68 <div class="main relative green" style="right: 100px;"> |
| 69 relative<div class="inline blue">fixed</div> |
| 70 </div> |
| 71 </div> |
| 72 |
| 73 <h5>Case 4: fixed text box (blue) should be just before relative text box (g
reen).</h5> |
| 74 <div class="container"> |
| 75 <div class="main relative green rtl" style="right: 100px;"> |
| 76 relative<div class="inline blue">fixed</div> |
| 77 </div> |
| 78 </div> |
| 79 |
| 80 <h5>Case 5: fixed text box (blue) should be just after relative2 text box (g
reen).</h5> |
| 81 <div class="container"> |
| 82 <div class="main relative grey" style="left: 100px;"> |
| 83 relative |
| 84 <span class="relative green" style="left: 50px;"> |
| 85 relative2<div class="inline blue">fixed</div> |
| 86 </span> |
| 87 </div> |
| 88 </div> |
| 89 |
| 90 <h5>Case 6: fixed text box (blue) should be after relative text box (grey) i
n some distance and before the other relative2 text box (green) in some distance
.</h5> |
| 91 <div class="container"> |
| 92 <div class="main relative grey rtl" style="left: 100px;"> |
| 93 relative |
| 94 <span class="relative green" style="left: 100px;"> |
| 95 relative2<div class="inline blue">fixed</div> |
| 96 </span> |
| 97 </div> |
| 98 </div> |
| 99 |
| 100 <h5>Case 7: fixed text box (blue) should be just after relative2 text box (g
reen).</h5> |
| 101 <div class="container"> |
| 102 <div class="main relative grey" style="left: 100px;"> |
| 103 relative |
| 104 <span class="relative green" style="right: 50px;"> |
| 105 relative2<div class="inline blue">fixed</div> |
| 106 </span> |
| 107 </div> |
| 108 </div> |
| 109 |
| 110 <h5>Case 8: fixed text box (blue) should be before relative2 text box (green
) in some distance.</h5> |
| 111 <div class="container"> |
| 112 <div class="main relative grey rtl" style="left: 100px;"> |
| 113 relative |
| 114 <span class="relative green" style="right: 150px;"> |
| 115 relative2<div class="inline blue">fixed</div> |
| 116 </span> |
| 117 </div> |
| 118 </div> |
| 119 |
| 120 <h5>Case 9: fixed text box (blue) should be just after relative2 text box (g
reen).</h5> |
| 121 <div class="container"> |
| 122 <div class="main relative grey" style="right: 100px;"> |
| 123 relative |
| 124 <span class="relative green" style="left: 50px;"> |
| 125 relative2<div class="inline blue">fixed</div> |
| 126 </span> |
| 127 </div> |
| 128 </div> |
| 129 |
| 130 <h5>Case 10: fixed text box (blue) should be after relative text box (grey)
in some distance and before other relative2 text box (green) in some distance.</
h5> |
| 131 <div class="container"> |
| 132 <div class="main relative grey rtl" style="right: 100px;"> |
| 133 relative |
| 134 <span class="relative green" style="left: 150px;"> |
| 135 relative2<div class="inline blue">fixed</div> |
| 136 </span> |
| 137 </div> |
| 138 </div> |
| 139 |
| 140 <h5>Case 11: fixed text box (blue) should be just after relative2 text box (
green).</h5> |
| 141 <div class="container"> |
| 142 <div class="main relative grey" style="right: 100px;"> |
| 143 relative |
| 144 <span class="relative green" style="right: 50px;"> |
| 145 relative2<div class="inline blue">fixed</div> |
| 146 </span> |
| 147 </div> |
| 148 </div> |
| 149 |
| 150 <h5>Case 12: fixed text box (blue) should be before relative2 text box (gree
n) in some distance.</h5> |
| 151 <div class="container"> |
| 152 <div class="main relative grey rtl" style="right: 100px;"> |
| 153 relative |
| 154 <span class="relative green" style="right: 150px;"> |
| 155 relative2<div class="inline blue">fixed</div> |
| 156 </span> |
| 157 </div> |
| 158 </div> |
| 159 |
| 160 </body> |
| 161 </html> |
OLD | NEW |