Closed
Bug 170341
Opened 22 years ago
Closed 19 years ago
Marquee printing problems
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ji, Assigned: martijn.martijn)
References
()
Details
(Keywords: embed, topembed-, Whiteboard: [adt3])
Attachments
(3 files, 5 obsolete files)
218 bytes,
text/html
|
Details | |
2.94 KB,
patch
|
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
2.52 KB,
patch
|
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
Rolling text is not printed out.
Also the following problem might be related to marquee:
Print results of a web page containing marquee doesn't fit to the paper zise.
It's much more narrow and hard to read. The user needs to go to File | Page
Setup window to uncheck the ShrinkToFit checkbox. Maybe it's bacause for
printing, marquee is recogzied a long text string w/o line break and the web
page is considered as a much wider page?
Steps to reproduce:
1. Go to http://www.sina.com.cn
2. Select File | Page Setup, make sure the ShrinkToFit checkbox is checked.
(it's turned on by default)
3. Print out the page, observe the marquee text. You can see the printing result
doesn't fit to the page size and marquee is not printed out.
4. Use a build which doesn't have marquee support, like Netscape
PR1 build, size fit problem doesn't exist.
Updated•22 years ago
|
Comment 1•22 years ago
|
||
need reduced test case (english please, I can't render the fonts with the url)
Comment 2•22 years ago
|
||
Comment 3•22 years ago
|
||
*** Bug 170130 has been marked as a duplicate of this bug. ***
Comment 4•22 years ago
|
||
<marquee> will not be printed, read the last line of html.css
The size fit problem is more serious than the marquee text print. On our
embedder application, there is no UI to control the ShrinkToFix setting, and the
setting is turned on by default. So on embedder application, the printouts are
coming out in very tiny text.
Comment 7•22 years ago
|
||
ji@netscape.com wrote:
> there is no UI to control the ShrinkToFix setting, and the
> setting is turned on by default. So on embedder application, the printouts are
> coming out in very tiny text.
Really ? AFAIK "ShrinkToFit" os broken on "trunk" and does not work in most
cases...
Comment 8•22 years ago
|
||
s/os broken/is broken/
The embedder application is based on mozilla 1.0.2 branch.
Yes, you are right, ShrinkToFit checkbox doesn't seem to be working on 9/20 trunk.
Comment 10•22 years ago
|
||
I can help out with printing issues, but it appears it was created to NOT print.
Assignee: rods → doron
Reporter | ||
Comment 11•22 years ago
|
||
Found a French web page containing marquee. This doesn't require Chinese fonts. :-)
http://www.mediametrie.fr/tv/index.html
Same problem happens when printing out this page: need to uncheck ShrintToFit
option for better printouts.
Reporter | ||
Comment 12•22 years ago
|
||
Yahoo China page (http://www.yahoo.com.cn) which doesn't contain marquee doesn't
have this size problem.
Comment 13•22 years ago
|
||
Marquee not beeing printed or shown in print preview is bug #163023 (even tough
it have been renamed to something stupid).
Comment 14•22 years ago
|
||
Marking this as topembed-/embed, as this is not currently stopping an embedding
customer.
Assignee | ||
Comment 15•19 years ago
|
||
I think this bug suffers from bug 119078.
-moz-binding:none should make the text visible in print preview, but it does not.
The margin: 0 100% rule seems still applied, even with -moz-binding:none.
Depends on: 119078
Assignee | ||
Comment 16•19 years ago
|
||
This makes marquee printable/visible on print preview.
I know it's a hack, but maybe worth considering?
Assignee | ||
Updated•19 years ago
|
Attachment #187634 -
Flags: review?(bzbarsky)
Comment 17•19 years ago
|
||
Martijn, would it perhaps make more sense to use a scoped stylesheet with an
"@media print" rules in it to accomplish a simialr effect? The ua.css approach
does sort of work, I guess, but the other would be cleaner...
Assignee | ||
Comment 18•19 years ago
|
||
Something like this?
I couldn't get paged.css included in this patch, since cvsdo doesn't work in my
setup.
Assignee | ||
Comment 19•19 years ago
|
||
the paged.css file.
Comment 20•19 years ago
|
||
No, I meant a scoped sheet in the XBL binding (so it doesn't affect perf on any
pages that don't use marquee). See
http://lxr.mozilla.org/seamonkey/source/xpfe/components/autocomplete/resources/content/autocomplete.xml#11
for an example.
Assignee | ||
Comment 21•19 years ago
|
||
So, something appr. like this?
Attachment #187634 -
Attachment is obsolete: true
Attachment #189105 -
Attachment is obsolete: true
Attachment #189106 -
Attachment is obsolete: true
Assignee | ||
Comment 22•19 years ago
|
||
I've also added padding: 0 !important; , because that makes the vertical
marquees visible on print preview.
Assignee | ||
Updated•19 years ago
|
Attachment #187634 -
Flags: review?(bzbarsky)
Comment 23•19 years ago
|
||
Martijn, that last patch looks pretty reasonable. Let me know when you want
review on it, ok?
Assignee | ||
Updated•19 years ago
|
Attachment #189205 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•19 years ago
|
Attachment #189207 -
Flags: review?(bzbarsky)
Comment 24•19 years ago
|
||
Comment on attachment 189205 [details] [diff] [review]
patch3a
>Index: layout/style/html.css
> /* PRINT ONLY rules follow */
> @media print {
>
>- marquee { -moz-binding: none; }
We probably want to leave this part here...
With that, r+sr=bzbarsky
Attachment #189205 -
Flags: superreview+
Attachment #189205 -
Flags: review?(bzbarsky)
Attachment #189205 -
Flags: review+
Comment 25•19 years ago
|
||
Comment on attachment 189207 [details] [diff] [review]
patch3b
>+/* PRINT ONLY rules follow */
>+@media print {
>+
>+ marquee { -moz-binding: none; }
That makes little sense in the binding's scoped sheet; take it out, please?
r+sr=bzbarsky with that.
Attachment #189207 -
Flags: superreview+
Attachment #189207 -
Flags: review?(bzbarsky)
Attachment #189207 -
Flags: review+
Assignee | ||
Comment 26•19 years ago
|
||
(In reply to comment #25)
> That makes little sense in the binding's scoped sheet; take it out, please?
But shouldn't that work, then? You can disable a binding from inside a binding's
scoped stylesheet, not?
But I'll be happy to revert that change. I'll attach new patches.
Assignee | ||
Comment 27•19 years ago
|
||
patch4a, addressing Boris comments.
Attachment #189205 -
Attachment is obsolete: true
Assignee | ||
Comment 28•19 years ago
|
||
patch4b, addressing Boris' comments.
Attachment #189330 -
Attachment is obsolete: true
Comment 29•19 years ago
|
||
> But shouldn't that work, then? You can disable a binding from inside a
> binding's scoped stylesheet, not?
Not the way we have it implemented, actually... Or rather, behavior would be
pretty undefined (sometimes the binding would be there, other times not, it
would be timing dependent, etc).
Assignee | ||
Updated•19 years ago
|
Attachment #189330 -
Attachment is obsolete: false
Assignee | ||
Updated•19 years ago
|
Attachment #189207 -
Attachment is obsolete: true
Comment 30•19 years ago
|
||
Martijn, you may want to request approval on those... ;)
Assignee | ||
Comment 31•19 years ago
|
||
Comment on attachment 189330 [details] [diff] [review]
patch4a
Fixes marquee printing problems, is very safe.
Assignee | ||
Comment 32•19 years ago
|
||
Comment on attachment 189330 [details] [diff] [review]
patch4a
Fixes marquee printing problems, is very safe.
Attachment #189330 -
Flags: approval1.8b4?
Assignee | ||
Comment 33•19 years ago
|
||
Comment on attachment 189331 [details] [diff] [review]
patch4b
Part of the previous patch.
Attachment #189331 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #189330 -
Flags: approval1.8b4? → approval1.8b4+
Updated•19 years ago
|
Attachment #189331 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 34•19 years ago
|
||
Ok, this is ready to be checked in.
Updated•19 years ago
|
Assignee: doronr → martijn.martijn
You need to log in
before you can comment on or make changes to this bug.
Description
•