iMyth / flying-saucer

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

Incorrect layout when specifying both corners with fixed positioning #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

my name is Thomas Grundmann and I guess I have found a bug with fixed 
positioning. Assuming the following file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
   <title>Test fixed possioning</title>
 </head>
 <body>
   <div>hello</div>
   <div style="
     position:fixed;
     top:0;
     bottom:0;
     left:0;
     right:0;
     background-color:red;">world</div>
 </body>
</html>

Using this file the result should be a red colored div having 'world' as 
content that covers the whole content pane (picture1, right side; made with 
firefox) but the result is different (picture1, left side; made with FS 
browser demo). It seems that if the left property has a different value 
than 'auto' the right properties is ignored (handled as set to 'auto'). So 
this behavior equals to the one for relative positioning. As far as I 
understood the css2.1 specification this is wrong.

It is interesting, that this does not appear with absolute positioning.

For the FS screenshot I used the browser demo with the xhtml file as input 
(modified the form.xhtml file).

regards
Thomas Grundmann

Original issue reported on code.google.com by Peter.Br...@gmail.com on 29 Apr 2010 at 2:02

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in b8b20dc5

Original comment by Peter.Br...@gmail.com on 16 Sep 2010 at 11:19

GoogleCodeExporter commented 9 years ago
aneesh2004 wrote on 14.09.2010 06:25:00 +0200:
Created an attachment (id=116)
test case for bug

Original comment by pdoubl...@gmail.com on 15 Feb 2011 at 10:41

GoogleCodeExporter commented 9 years ago
aneesh2004 wrote on 14.09.2010 06:26:12 +0200:
attached the document that I am trying to load.

Original comment by pdoubl...@gmail.com on 15 Feb 2011 at 10:41

GoogleCodeExporter commented 9 years ago
aneesh2004 wrote on 14.10.2010 18:07:24 +0200:
this is causing the JVM to crash.

Original comment by pdoubl...@gmail.com on 15 Feb 2011 at 10:41

GoogleCodeExporter commented 9 years ago
aneesh2004 wrote on 14.10.2010 18:08:17 +0200:
Thanks.

Original comment by pdoubl...@gmail.com on 15 Feb 2011 at 10:41