28 background-color: lime;
32 background-color: cyan;
36 background-color: silver;
45 <h3>Test for chromium bug :
<a href=
"https://code.google.com/p/chromium/issues/detail?id=31286">31286</a>. css rendering bug : fixed-position-element and 'left'.
</h3>
46 <p>If fixed position inline element does not have left and/or right position then it should render as normal flow.
</p>
48 <h5>Case
1: fixed text box (blue) should be just after relative text box (green).
</h5>
49 <div class=
"container">
50 <div class=
"main relative green" style=
"left: 100px;">
52 <span class=
"fixed blue">
58 <h5>Case
2: fixed text box (blue) should be just before relative text box (green).
</h5>
59 <div class=
"container">
60 <div class=
"main relative green rtl" style=
"left: 100px;">
62 <span class=
"fixed blue">
68 <h5>Case
3: fixed text box (blue) should be just after relative text box (green).
</h5>
69 <div class=
"container">
70 <div class=
"main relative green" style=
"right: 100px;">
72 <span class=
"fixed blue">
78 <h5>Case
4: fixed text box (blue) should be just before relative text box (green).
</h5>
79 <div class=
"container">
80 <div class=
"main relative green rtl" style=
"right: 100px;">
82 <span class=
"fixed blue">
88 <h5>Case
5: fixed text box (blue) should be just after relative2 text box (green).
</h5>
89 <div class=
"container">
90 <div class=
"main relative grey" style=
"left: 100px;">
92 <span class=
"relative green" style=
"left: 100px;">
94 <span class=
"fixed blue">
101 <h5>Case
6: fixed text box (blue) should be after relative text box (grey) in some distance and before the other relative2 text box (green) in some distance.
</h5>
102 <div class=
"container">
103 <div class=
"main relative grey rtl" style=
"left: 100px;">
105 <span class=
"relative green" style=
"left: 100px;">
107 <span class=
"fixed blue">
114 <h5>Case
7: fixed text box (blue) should be just after relative2 text box (green).
</h5>
115 <div class=
"container">
116 <div class=
"main relative grey" style=
"left: 100px;">
118 <span class=
"relative green" style=
"right: 100px;">
120 <span class=
"fixed blue">
127 <h5>Case
8: fixed text box (blue) should be before relative2 text box (green) in some distance.
</h5>
128 <div class=
"container">
129 <div class=
"main relative grey rtl" style=
"left: 100px;">
131 <span class=
"relative green" style=
"right: 100px;">
133 <span class=
"fixed blue">
140 <h5>Case
9: 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;">
144 <span class=
"relative green" style=
"left: 100px;">
146 <span class=
"fixed blue">
153 <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>
154 <div class=
"container">
155 <div class=
"main relative grey rtl" style=
"right: 100px;">
157 <span class=
"relative green" style=
"left: 100px;">
159 <span class=
"fixed blue">
166 <h5>Case
11: fixed text box (blue) should be just after relative2 text box (green).
</h5>
167 <div class=
"container">
168 <div class=
"main relative grey" style=
"right: 100px;">
170 <span class=
"relative green" style=
"right: 100px;">
172 <span class=
"fixed blue">
179 <h5>Case
12: fixed text box (blue) should be before relative2 text box (green) in some distance.
</h5>
180 <div class=
"container">
181 <div class=
"main relative grey rtl" style=
"right: 100px;">
183 <span class=
"relative green" style=
"right: 100px;">
185 <span class=
"fixed blue">
192 <h5>Case
13: fixed text box (blue) should be just after relative2 text box (green).
</h5>
193 <div class=
"container">
194 <div class=
"main relative grey" style=
"left: 100px;">
196 <span class=
"relative green" style=
"left: 25%;">
198 <span class=
"fixed blue">
205 <h5>Case
14: fixed text box (blue) should be after relative text box (grey) in some distance and before the other relative2 text box (green) in some distance.
</h5>
206 <div class=
"container">
207 <div class=
"main relative grey rtl" style=
"left: 100px;">
209 <span class=
"relative green" style=
"left: 25%;">
211 <span class=
"fixed blue">