Closed
Bug 72148
Opened 25 years ago
Closed 8 years ago
All XUL display types being treated as inline
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
INCOMPLETE
mozilla1.0.1
People
(Reporter: hyatt, Unassigned)
Details
The non-inline XUL display types should be treated like block-level elements.
I've presumably missed patching some method in the frame constructor.
| Reporter | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
| Reporter | ||
Comment 1•25 years ago
|
||
Looks like the culprit is this function in nsIStyleContext.h....
PRBool IsBlockLevel() const {return (NS_STYLE_DISPLAY_BLOCK == mDisplay) ||
(NS_STYLE_DISPLAY_LIST_ITEM == mDisplay) ||
(NS_STYLE_DISPLAY_TABLE == mDisplay);}
Before, all XUL elements were display: block. Now I need to specifically add my
display types to this function...
Comment 2•25 years ago
|
||
David, I don't know if it matters to you, but there is another method in
nsStyleContext.cpp that checks for block display types:
EnsureBlockDisplay
This is used to implement a CSS2 requirement that floated or positioned elements
must be blocks... If elemens with XUL display types can be positioned or
floated, then they should be handled in that method too.
| Reporter | ||
Comment 3•25 years ago
|
||
Thanks! Yes, in theory, they could be positioned or floated, so I will need to
patch that.
Seems like we should coalesce all these different block-testing functions into a
single function, eh?
| Reporter | ||
Updated•25 years ago
|
Target Milestone: mozilla0.9.1 → mozilla0.9.2
| Reporter | ||
Updated•25 years ago
|
Target Milestone: mozilla1.0 → mozilla1.0.1
I'm not a programmer, but this bug is still targetted for Moz 1.0.1 and hasn't
been touched since 2001.
Is it possible that it is either fixed or invalid by now?
At least someone should change the target milestone ;)
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
Updated•16 years ago
|
Assignee: hyatt → nobody
Updated•16 years ago
|
Status: ASSIGNED → NEW
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•