Closed
Bug 313219
Opened 19 years ago
Closed 18 years ago
Table wrapped inside marquee is cropped
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: martijn.martijn, Unassigned)
References
()
Details
(Keywords: regression, testcase, Whiteboard: [reflow-refactor])
Attachments
(1 file, 2 obsolete files)
377 bytes,
text/html
|
Details |
See url testcase, the table should not be cropped like that. This is a
regression from bug 277208.
Reporter | ||
Comment 1•19 years ago
|
||
This fixes it.
If it is really not done adding marquee code to quirk.css (which I can
imagine), I could maybe hack something up by adding <html:style>marquee table {
white-space: nowrap;}</html:style> to <content> for horizontal marquee
binding.
Reporter | ||
Comment 2•19 years ago
|
||
On the other hand, this would then not work well anymore, so the fix would break other things.
Probably this is something that is difficult to fix anyhow.
The best way to get this fixed is returning to use xul:hbox instead of div style="display:table". But that would depend on bug 307763.
Reporter | ||
Comment 3•19 years ago
|
||
A possible solution is to put an extra <div style="display:-moz-box"> between innerdiv and the surrounding <div style="display:table">. It would not trigger bug 307763.
But xul:hboxes also suffer from 313750, which means that this would cause a regression in https://bugzilla.mozilla.org/attachment.cgi?id=98119 from bug 167075.
The vertical marquee would not scroll completely anymore.
It's probably best to keep current situation, as long as bug 307763 and bug 313750 are not fixed.
Depends on: 313750
Reporter | ||
Comment 4•19 years ago
|
||
And the use of xul:hboxes would regress bug 276729.
![]() |
||
Comment 5•19 years ago
|
||
I can't seem to reproduce this on trunk...
Reporter | ||
Comment 6•19 years ago
|
||
Sorry, the first testcase describes a situation that doesn't work with the patch I attached.
This testcase describes what wrong in current situation. The table is cropped currently, but shouldn't be, because IE6 doesn't crop it.
![]() |
||
Comment 7•19 years ago
|
||
So the real issue is that the text wraps, right?
Reporter | ||
Comment 8•19 years ago
|
||
Yes.
![]() |
||
Comment 9•19 years ago
|
||
Should the anonymous stuff inside the marquee have white-space: nowrap set on it? Or should things sometimes wrap inside the marquee?
Reporter | ||
Comment 10•19 years ago
|
||
(In reply to comment #9)
> Should the anonymous stuff inside the marquee have white-space: nowrap set on
> it? Or should things sometimes wrap inside the marquee?
Yes, setting the anonymous stuff to white-space: nowrap should help with testcase2, but that would break the first testcase (at least that's what I said in comment 2).
With using xul:hbox instead of display:table, you don't need to use white-space: nowrap, but that has other, more serious problems, bug 277208 and bug 313750. So afaict, there isn't a solution, atm.
![]() |
||
Comment 11•19 years ago
|
||
Hmm... The first testcase already doesn't wrap; how would this be worse?
Reporter | ||
Comment 12•19 years ago
|
||
Well, it would not be worse, but we would trade one bug for the other.
![]() |
||
Comment 13•19 years ago
|
||
Trade this bug for what other?
Reporter | ||
Comment 14•19 years ago
|
||
I was gonna say, for the case of testcase1, but I must have been tripping when I made that testcase, because I don't see a difference after I've applied the patch.
But the thing is, white-space: nowrap is already set on stuff inside the marquee:
http://lxr.mozilla.org/seamonkey/source/layout/style/xbl-marquee/xbl-marquee.xml#648
The problem is that this isn't inherited by tables in quirks mode:
http://lxr.mozilla.org/seamonkey/source/layout/style/quirk.css#98
So the patch is adding some extra rules to quirk.css to prevent that from happening.
So I guess that patch would be suitable then, but I suspect you don't like the adding of marquee rules to quirk.css.
![]() |
||
Comment 15•19 years ago
|
||
I have no problem with inheriting white-space into tables inside marquees in quirks mode... Do we really need the "marquee table" rule? Can we get away with "marquee > table"? The latter is a _lot_ faster.
![]() |
||
Updated•18 years ago
|
Whiteboard: [reflow-refactor]
Updated•18 years ago
|
Attachment #200664 -
Attachment is obsolete: true
Comment 16•18 years ago
|
||
This is fixed on the latest hourly now that bug 363285 landed.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061211 Minefield/3.0a1 ID:2006121112 [cairo]
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: reflow-refactor, 363285
Flags: in-testsuite?
Resolution: --- → FIXED
Updated•18 years ago
|
Attachment #200304 -
Attachment is obsolete: true
Updated•12 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•