Hi,
Looking to confirm if ALL the "Print" Medium style settings are supposed to be applied when printing HTML5 output from a browser (e.g. Chrome)?
Specifically looking at image settings as I have image sizes set differently in my Default and Print mediums, and I use thumbnails for HTML5 and do not for print.
I have a situation where I can make changes to my "print" medium, and they are applied in my PDF target output, but not when I print the HTML5 output from the browser (it just prints whats on the screen (which is defined in my "Default" medium).
Are the print medium settings really supposed to be used by the browser print function?
I have searched and seen opposing explanations of "what the print medium is supposed to do", thus looking for definitive answer, or if image settings are excluded by the browser...?
Browser printing & the Print Medium
Re: Browser printing & the Print Medium
It's complicated.
Short answer -
Any normal CSS (but not anything with a mc-* property) that's in the "print" medium should be applied when you print a page from the HTML5 output.
Long answer -
So, "print" is the name of a real CSS media type, that's applied when the page is sent to a print device - in the same way that the "screen" CSS media type is only applied when the page viewed on a screen device.
The key point here is that the HTML and CSS of the page don't change, and it's the browser that's choosing the appropriate media CSS to apply when it renders your page and sends it to the device.
But Flare has hi-jacked CSS media types / mediums for its own internal purposes - as mediums can be set at a target and are applied during the build process, rather than being applied by the browser/device rendering the page.
Some of the CSS will basically be copied and pasted to the end of your stylesheet (outside the media). Some of the CSS, especially any mc-* settings like thumbnails, will result in different HTML and CSS being generated in the output. So thumbnails don't work when printed because the underlying HTML and CSS are fixed, and it can't be applied by the browser/print device itself.
(More details in this thread, if you're not already bored: viewtopic.php?f=75&t=21900#p111121)
What makes it confusing is that "print" is also the name of a real media type, so it's not just used by Flare and will be applied by the browser.
Anything in your "print" medium in the source CSS will still be included as-is in the output CSS, so you'll find some things work and some don't. Any normal CSS properties (not mc-* properties) should still be applied when you print a HTML5 page from your browser.
Short answer -
Any normal CSS (but not anything with a mc-* property) that's in the "print" medium should be applied when you print a page from the HTML5 output.
Long answer -
So, "print" is the name of a real CSS media type, that's applied when the page is sent to a print device - in the same way that the "screen" CSS media type is only applied when the page viewed on a screen device.
The key point here is that the HTML and CSS of the page don't change, and it's the browser that's choosing the appropriate media CSS to apply when it renders your page and sends it to the device.
But Flare has hi-jacked CSS media types / mediums for its own internal purposes - as mediums can be set at a target and are applied during the build process, rather than being applied by the browser/device rendering the page.
Some of the CSS will basically be copied and pasted to the end of your stylesheet (outside the media). Some of the CSS, especially any mc-* settings like thumbnails, will result in different HTML and CSS being generated in the output. So thumbnails don't work when printed because the underlying HTML and CSS are fixed, and it can't be applied by the browser/print device itself.
(More details in this thread, if you're not already bored: viewtopic.php?f=75&t=21900#p111121)
What makes it confusing is that "print" is also the name of a real media type, so it's not just used by Flare and will be applied by the browser.
Anything in your "print" medium in the source CSS will still be included as-is in the output CSS, so you'll find some things work and some don't. Any normal CSS properties (not mc-* properties) should still be applied when you print a HTML5 page from your browser.
Re: Browser printing & the Print Medium
Dave, Thank you very much for your time...
So Yes that confirms what is happening.
I suspected so, but reading multiple threads with different information I was running in circles trying to make it work.
So Yes that confirms what is happening.
I suspected so, but reading multiple threads with different information I was running in circles trying to make it work.