Closed Bug 102181 Opened 24 years ago Closed 24 years ago

XUL in XHTML: bad alignment in <grid> layout

Categories

(Core :: Layout, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: shawn1, Assigned: eric)

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20010913 BuildID: 2001091303 Grids that render fine in a XUL file render badly when embedded in a n XHTML file. In particular, when a grid is embedded in an XHTML file, cells are not aligned into columns properly. See below for more details. Reproducible: Always Steps to Reproduce: 1. create a grid in a XUL file. 2. load XUL file into Mozilla, observe it working properly. 2. copy and paste the grid into an XHTML file. 3. load XHTML file into Mozilla, see the bad layout. Actual Results: The layout of my sample grid (XML below) looks like this when embedded in XHTML: AAAAAAAAAAB CDDDDDDDDDD Expected Results: It *should* render like this: AAAAAAAAAAB C DDDDDDDDDD Here are two files. The first works as expected, the second renders badly. Red borders are placed on all cells to aid seeing the grid cells. Removing this styling has no effect on the behavior. A working XUL file (errorcaseGood.xul): <box xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:h="http://www.w3.org/1999/xhtml"> <grid> <columns> <column/> <column/> </columns> <rows> <row> <h:html style="border: solid red 1px;">AAAAAAAAAA</h:html> <h:html style="border: solid red 1px;">B</h:html> </row> <row> <h:html style="border: solid red 1px;">C</h:html> <h:html style="border: solid red 1px;">DDDDDDDDDD</h:html> </row> </rows> </grid> </box> A broken XHTML file (errorcaseBad.xhtml): <h:html xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:h="http://www.w3.org/1999/xhtml"> <h:head/> <h:body> <grid> <columns> <column/> <column/> </columns> <rows> <row> <h:html style="border: solid red 1px;">AAAAAAAAAA</h:html> <h:html style="border: solid red 1px;">B</h:html> </row> <row> <h:html style="border: solid red 1px;">C</h:html> <h:html style="border: solid red 1px;">DDDDDDDDDD</h:html> </row> </rows> </grid> </h:body> </h:html>
David, is this a bug or a feature?
Assignee: attinasi → hyatt
over to eric
Assignee: hyatt → evaughan
Marking these all WORKSFORME sorry about lack of response but were very overloaded here. Only reopen the bug if you can reproduce with the following steps: 1) Download the latest nightly (or 0.9.6 which should be out RSN) 2) Create a new profile 3) test the bug again If it still occurs go ahead and reopen the bug. Again sorry about no response were quite overloaded here and understaffed.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.