Closed
Bug 397346
Opened 19 years ago
Closed 19 years ago
<div style="position:absolute"></div> not equal <div style="position:absolute"/>
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 162653
People
(Reporter: ajrodriguez, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en; rv:1.8.1.3) Gecko/20070321 Firefox/2.0.0.3
<div style="position: absolute;
margin-left : 35em;
z-index: 3;
width : 3em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"></div>
<div style="position: absolute;
margin-left : 7em;
z-index: 3;
width : 50em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"></div>
This code produces expected output, but this other code doesn't
<div style="position: absolute;
margin-left : 35em;
z-index: 3;
width : 3em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"/>
<div style="position: absolute;
margin-left : 7em;
z-index: 3;
width : 50em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"/>
This lines only differs in close tag.
Reproducible: Always
Steps to Reproduce:
<div style="position: absolute;
margin-left : 35em;
z-index: 3;
width : 3em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"/>
<div style="position: absolute;
margin-left : 7em;
z-index: 3;
width : 50em;
height : 1.8em;
border : 0.1em solid #464646;
background : red;
opacity:0.6;
"/>
Actual Results:
divs appear in wrong position
Expected Results:
divs appear in specified position
| Reporter | ||
Updated•19 years ago
|
Version: unspecified → 2.0 Branch
Updated•19 years ago
|
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: 2.0 Branch → 1.8 Branch
Comment 1•19 years ago
|
||
/> does not close an element in HTML. You need to serve your page with
a XML mime-type if you want that, e.g. application/xhtml+xml
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•