CSS for Mobile Devices
Death of Rats writes: "The World Wide Web Consortium has finally released its working draft for Cascading Stylesheets 2 for Mobile Devices. Definitely check this out if you intend on getting in on WAP or any other form of wireless internet."
As for the foolishness of doing much with layout on a mobile device -- that is, in a sense, one motivation for subletting CSS for mobile devices. The idea of CSS is to separate the formatting from the content. There is still formatting that has to be applied to content aimed at a mobile device, CSSMP is an attempt to describe what is possible and appropriate.
Sooner or later WAP will be rendered obsolete by changes in the wireless networks. But WML and WMLScript will probably endure longer than WAP just because cruft never dies, and this is useful cruft. I think the W3C is right to look forward to a post WAP mobile era where variations of familiar standards, such as XHTML Basic and maybe CSSMP, will integrate mobile devices into the web more cleanly than WAP.
I can't see that, in the near future, anybody will want the same style sheet for a desk top browser and a mobile phone - and I would expect the content displayed on a phone to be very much more restricted. Rather than send a lot of data that's going to get ignored, there's a good argument for only serving the data that's required. A producer->processor->formatter architecture allows for this. A servlet generates dynamic content, which is then passed to a processor that mungs it about a bit - inserts dates, side bars, menus and the like, before a formatter turns it into, for example, HTML, WAP, VoxML, or a binary format like PDF. Apache Cocoon is one architecture that does this, now.
If a cell phone can display CSS, why can't my PC? Let's get our priorities straight.
sup
On a related subject, isn't it time for a Slashdot HTML 'view' formatted especially for small screen low-bandwidth devices? I know you can do a lot by setting your display preferences, but it could be a lot better.
/. consensus is that it sucks, but a WAP version of Slashdot would definitely be welcomed by (admittedly non US) readers. WAP may suck, but the phones are cheap and capable enough to read headers and article abstracts when you're wasting your time in a queue or something. I wouldn't want to take part in a discussion typing on a phone, though...
On the subject of WAP: I know the
WML pages are easy to implement too, I think I could do a reasonable WAP version in a day or so.
I guess I'm too politically infected. The first thing that came to my mind after reading the story is, "So when will DeCSS arrive for Mobile Devices??"
Pigdog DeCSS is a filter that removes CSS-2 from a web page.
Will I retire or break 10K?
The other alternative is to do it all on the server
My web host doesn't have CGI support. Heck, I can't even do 301/302 redirects; I have to use meta tags or EcmaScript. How do I do anything on the server?
Will I retire or break 10K?
Huh?! Last time I checked, my ISP was responsible for providing me bandwidth and...well, bandwidth.
Try to think of one reason why many destinations (gobs of ISPs) should try to filter the immense variety of web content, instead of each "content provider," who has easy access to the data, creating output viewable on numerous devices (once, mind you, not once/transfer), before it is in transit.
The idea of rewriting code (ie, http://www.amazon.com/phone/) for different access devices has always struck me as somewhat foolish.
Yeah, different devices, like say, IE and Netscape? It may be inconvenient for web developers to do so, but hopefully standards like this will decrease the likelihood of a dominant proprietary system.
Tom
Is anyone using WAP? It'll probably be a while before CSS gets supported, and even longer before it gets implemented. Even browsers running on PC's don't all support it(or support it in the standard way). I don't think the idea of browsing stuff on a dodgy screen is going to take off anyway.
We can credit W3C for being forward-looking, but I expect that CSSMP will go the way of WAP.
Perhaps not. I believe the point of this newly crafted subset of CSS2 is to provide a stable reference for useful functions that ought to be in mobile devices (meaning ultra-portable devices with limited display capabilities, and not meaning laptops which might have better display capabilities than many quite old desktop computer layouts with small VGA monitors which are still in use throughout the world).
This area is of keen interest to me, and after the long agony with simple HTML 3.2/4.0[1]+ and with CSS1 through the still not-quite-totally-there CSS2, any way to avoid any more standards wrangling will come as a great relief to those of us who have to actually do this stuff for a living. I'd imagine that XSLT 1.0+ engines will do much of the actual work, and it really helps to be able to more or less reuse all that existing work with a near-exact subset of CSS2.
Anyways, I'm back (in a few minutes, after a little more procrastination) to figuring out how to most efficiently split up parts of (simple for now) XML documents for later Java/Python XML/XSLT processing, while allowing simpler, more immediate PHP 4.0+ XML processing. Argh ....
A truly excellent pizza parlor is a delight unto the heavens. Treasure the sauce and the toppings!
It seems strange to me that a wholly different version of CSS is required for mobile phones. Wouldn't an extension of the existing CSS definitions make more sense? The majority of these terms exist in CSS.
:) I understand that there are more advanced devices, like the Palm VII, that can handle more than 16x3 characters (or whatever), but it still seems to be mostly about content right now.
I guess I'm of the school of thought that the ISPs for mobile devices ought to filter the content and rewrite it to suit mobile phones. The idea of rewriting code (ie, http://www.amazon.com/phone/) for different access devices has always struck me as somewhat foolish.
Perhaps the only thing more foolish than that is attempting much in the way of layout on a PCS screen.
We can credit W3C for being forward-looking, but I expect that CSSMP will go the way of WAP.
-Waldo
There is currently one production browser in existance that actually implements CSS1 - Internet Explorer 5 for Macintosh. Only the Mac version of IE does CSS1 correctly. No other browsers do. This spec is designed to supplement CSS2. The W3C is actively working on CSS3 for some strange reason...
As to why they did this, that's simple: HTML was never designed to specify the style of the document, just the structure. That's why the tags have names like Paragraph, Emphasis, and Strong. HTML was designed to structure content - it never was intended to be used to create the complex web pages we see today.
CSS was designed to solve that problem - it would move style away from the structure. CSS2 has the idea of multiple media types - all this mobile phone implementation really does is add another media type. The idea behind media types is so that HTML+CSS2 can be used in both a browser, and then have a special set of rules for when it's printed. There's a "vocal" set of rules for blind people who use text-to-speech browsers. Now there's a WAP "media" type so that phones that support it can view content.
Most simply, the idea behind CSS2 is to allow someone to create a webpage based on content and not on style - and to allow the CSS backend to be changed, so that the look and feel of a website isn't done in HTML as much as it's done in CSS. The mobile phone CSS spec is simply an extension of this ideal - to separate content from style. By extension, that means you don't need to rewrite the page in HDML - all you need to do is use the special cellphone CSS section, and the page is "converted." This was the basic goal behind CSS2. It's too bad no one ever really got around to using it.
You are in a maze of twisty little relative jumps, all alike.