The way browsers treating @import isn't the same as @media correct?
As mentioned; I haven't tested actual browser-behavior for a long time,
but @media and @import are, or should be, handled pretty much the same
way by browsers. Either a particular browser supports the "media" and
loads and/or acts on what's inside, or it doesn't support it and ignores
the entire CSS file and/or style block. Still some confusing, incomplete
and/or incorrect behavior in browsers, so no guarantee.
If yes, it seems it's safe to bet that when a desktop browser sees a
media queries like these it will ignore
<link rel="stylesheet" media="only screen and (max-width: 480px),
only screen and (max-device-width: 480px)" /> <link rel="stylesheet"
media="only screeand (orientation:portrait) " />
Yes, BUT, don't trust browsers to treat "media" in link relations the
same as they (should) do @import and @media. Slightly different
"constructions" that serve pretty much the same purpose from different
points - pagehead and CSS sheet/block respectively, but which some
browsers certainly didn't treat the same only a few years ago. They'll
all get there, but some more slowly than others.
Or when a Mobile Browser sees this it ignores too (because I don't
see a way to print command from any Mobile Browsers that I know of.
<link rel="stylesheet" media="print " />
Don't know, but "print to file" may exist on some, to allow for
transfers to and printout on another device. Who knows what some
upcoming device will be capable of.
In the case of @media print, I don't remember where I read it or it's
simply just something came up from me due to my flawed understanding,
that browser does not load print style sheet until a print request
has been made.
Sounds logical, but someone else has to to confirm, deny, or correct, on
this.
FWIW: can't remember having noticed any new fetches from the server when
I initiated printing on a site I hadn't visited before, so maybe the
browser had already loaded the print stylesheet it used for the printout.
<rant> One thing I'd learned from this targeted audiences, is you can
never give/advice/tell them anything more than the little money they
paid, or you are asking for trouble because next thing they expect
from you is solve every little issue they run into in their sites,
including "why there are so much white space between each paragraph".
And a question like this could be threw at you even a year later. A
polite and well-manner customer can be abusive at the same time if
you haven't deal with one!</rant>
Life would be so much easier if we didn't have to deal with clients'
expectations...
For the time being at least, I don't. Lucky me ;-)
regards
Georg
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************