Closed Bug 34294 Opened 24 years ago Closed 24 years ago

CSS position:absolute does not work in XUL

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: aw, Assigned: eric)

References

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
BuildID:    2000040215

Using the CSS position:absolute style on an HTML element in a XUL file results 
in the HTML element not being displayed. Using position:absolute on a XUL 
element results in it being displayed as though position:static.

Reproducible: Always
Steps to Reproduce:
1.View this XUL which contains an absolutely positioned box:

<?xml version="1.0"?>
<window
	xmlns:html="http://www.w3.org/TR/REC-html40">
	<box style="position:absolute; width:100px; height:100px; background-
color:blue">
	</box>
</window>

2. View this XUL which contains an absolutely positioned HTML DIV:

<?xml version="1.0"?>
<window
	xmlns:html="http://www.w3.org/TR/REC-html40"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
	<html:div style="position:absolute; width:100px; height:100px; 
background-color:blue">
	</html:div>
</window>


Actual Results:  In step 1, the box is layed out as though it were 
position:static. In step 2, the HTML DIV is not displayed at all.

Expected Results:  In both cases, the element should have been absolutely 
positioned.
giving to evaughan for triage.
Assignee: trudelle → evaughan
aw@softcom.com - neither of these test cases displays anything on their own (is 
that how they are supposed to be used) in 20000512. I take it this bug is still 
there?

Gerv
Sorry, testcase #1 has the wrong namespace which is causing it to display 
nothing.  Testcase #2 is correct, and displays nothing (although it should).  I 
have attached a zip file with the two testcases - they also now include some 
text so you know something loaded. In the attachment, abs-html.xul displays 
nothing except the text and abs-xul.xul displays a blue DIV that is not 
absolutely positioned.  I tested both with build 2000051210 and got the same 
results.
Confirming.

Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
Boxes do not support absolute or fixed positioning. This is a HTML feature not 
XUL feature. XUL allows you to embed HTML but has a very different layout model.    
You can use absolute/fixed positioning within some HTML that is embedded in a 
XUL <html> tag. But the enclosed examples are not valid XUL.

Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
vrfy invalid per eric's comments.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: