steven0lisa / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

position:absolute and top:auto #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-340

It was reported by jamjim on 21.10.2010 17:12:11 +0200 and last updated in the 
previous bug tracker on 21.10.2010 17:12:11 +0200

Found in
Operating System: All
Platform: All

The priority for this issue at migration was Major.

Original description: 
I not sure the css spec really says anything about this, but the browsers appear
to all do the same thing. The nested div lines up with the bottom left corner of
padding edge of the outer div.   In FS it lines up with the top of outer div and
is on extreme left.   

<div style="border:red 1px solid">one
  <div style="border:blue 1px solid;position:absolute;">two
  </div>
</div>

My workaround is to put an intermediate div in and set it to position:relative.
 Appears to working OK.

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:47