Closed Bug 72148 Opened 25 years ago Closed 8 years ago

All XUL display types being treated as inline

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

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.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
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...
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.
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?
This can wait a bit.
Target Milestone: mozilla0.9 → mozilla0.9.1
Target Milestone: mozilla0.9.1 → mozilla0.9.2
->moz1.0
Target Milestone: mozilla0.9.2 → mozilla1.0
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
Assignee: hyatt → nobody
Status: ASSIGNED → NEW
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.