[Tickets #8708] Re: HTML messages in IFRAME don't print correctly
bugs at horde.org
bugs at horde.org
Tue Feb 2 16:50:16 UTC 2010
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8708
------------------------------------------------------------------------------
Ticket | 8708
Updated By | Michael Slusarz <slusarz at horde.org>
Summary | HTML messages in IFRAME don't print correctly
Queue | IMP
Version | Git master
Type | Bug
State | Feedback
Priority | 2. Medium
Milestone | 5.0
Patch |
Owners |
------------------------------------------------------------------------------
Michael Slusarz <slusarz at horde.org> (2010-02-02 11:50) wrote:
> I readily admit I might be missing something here. Would it be
> possible to read in the relevant CSS files and stream them out as
> part of the page, instead of hardcoding as such?
No. It's not an issue with inserting them in the page; this can be
done easily enough (?) with a preg_replace(). Instead, we go through
all this trouble to create an environment where HTML can be rendered
exactly how it is intended by the sender, and then we go introduce CSS
that will surely affect the page layout (since we have several rules
that are guaranteed to work on the entire document).
It may be possible to parse our CSS, extract just the rules needed,
and then hardcode the styles in the header part. But this is not
trivial either. And not something I'm willing to devote a large
amount of time to.
More information about the bugs
mailing list