Closed Bug 13715 Opened 25 years ago Closed 25 years ago

Problem with fixed positioned <P>.

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 4209

People

(Reporter: CodeMachine, Assigned: troy)

Details

Bear with me that I'm a CSS newbie and by no means a HTML expert, so I've
probably spelt the <P>s wrong and have got my text-align:s in backwards, but
here goes.

This is the simplest test case I can see to a problem I'm seeing with fixed
positioning.  I can't find a dupe, but I suspect it's there somewhere since I
can't get Moz to NOT do this.

<!doctype html public "-//w3c//dtd html 4.0 strict//en">
<html>
  <head>
    <style type="text/css">
      p { position: fixed }
    </style>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

The result is absolute garbage, with the text "Test" hidden in there somewhere.
 This is on build 1999091010 but I've seen it before then.

I imagine this is probably invalid CSS because I haven't entered required values
or something, but Moz definitely should not render garbage.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Well, there are a couple of things, but basically this is a DUP of bug #4209
(actually there are several bugs related to this, all in the "compositor"
component).

To get it to render better you'll need to specify a background-color for the
fixed position element. The default is 'none' which means the element is
transparent. That's the bug. We don't yet support transparent fixed position
elements

If you specify a background color, e.g.
p { position: fixed; background-color:yellow }, then you'll see the text

You might want to specify a 'height' as well; otherwise the default is that the
element is very large as you can see



*** This bug has been marked as a duplicate of 4209 ***
Status: RESOLVED → VERIFIED
Agreed. This is a duplicate of 4209.
You need to log in before you can comment on or make changes to this bug.