W3C home > Mailing lists > Public > public-bpwg@w3.org > June 2009

Re: MWABP: Revised text for Device Capability Detection.

From: Jo Rabin <jrabin@mtld.mobi>
Date: Mon, 22 Jun 2009 09:49:40 +0100
To: "Adam Connors" <adamconnors@google.com>, "Bruce Lawson" <brucel@opera.com>
Cc: "Charles McCathieNevile" <chaals@opera.com>, "Rotan Hanrahan" <rotan.hanrahan@mobileaware.com>, "Mobile Web Best Practices Working Group WG" <public-bpwg@w3.org>
Message-ID: <002401c9f316$650a930c$050012ac@DotMobi.local>
There is obviously a place for client side adaptation, per css media queries, indeed that's kind of what this document is about ... But we've previously discussed lack of general support for media queries, with the exception of Opera, I think, and we've previously noted that bunging everthing into one doc and letting the browser sort it out, can be, well, sub-optimal.

I haven't really thought about this much, but do css media queries play nicely with scripting? Don't you have the problem that you can't be sure what the browser has done or is about to do about applying the rules? Wouldn't you be better off doing it in script so you know where you are?

Jo

--- original message ---
From: "Adam Connors" <adamconnors@google.com>
Subject: Re: MWABP: Revised text for Device Capability Detection.
Date: 22nd June 2009
Time: 9:18:02 am

> I tried to give examples of the type of adaption possible but they haven't
> made it into the draft
> http://www.w3.org/2005/MWI/BPWG/Group/Drafts/BestPractices-2.0/ED-mobile-bp2-20090619#bp-devcap-scripting
>
> How about
>
> "CSS Media Queries: Media queries allow developers to apply style rules
> depending on certain attributes of the device. See Media Queries [CSSMQ].
> For adaptation that requires reformatting of layout, fonts, background
> images, colours or hiding elements from mobile devices, this may be the
> simplest method for the developer"
>
> or some such?
>
> bruce
>


Apologies for that, Bruce, I was probably over zealous with the trimming. I
like the text you give here and will update the draft.

re: Chaal's question:

> More to the point, this calls into question the strength of "prefer server
> side techniques". While it is clear that those are more powerful, and can
> reduce the amount of content sent to the client, they are more complicated
> and are not necessarily available.


Isn't the difference here that we're talking about Web *applications* rather
than simple content. That you can modify layout etc with stylesheets is kind
of taken as read. We should probably call this out more explicitly.
Received on Monday, 22 June 2009 08:50:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:09:01 UTC