February 25, 2009
Safari 4
Some lovin’ and hatin’ for the Safari 4 beta today. This is just a cursory inspection from consumer and developer angles:
- Nice visuals on the top sites & bookmarks features. Limited long-lasting appeal for essentially a glamour feature though, and it wasn’t immediately apparent how to edit the top sites, where they were stored, and how they came to get in my browser (I had the same data customisation issues with Flock a while back). Opera’s SpeedDial feels much more user-friendly at this stage.
- Tab placement is horrendous on Windows; at least Chrome’s tabs make a pass at being in the browser window’s content area. Stop screwing with interface conventions — treating some tab mouse events as the app title bar is contextually confusing (double-click, dragging). Please stop innovating things that don’t need innovation.
- Each Safari release reminds me how good Webkit’s renderer is. Awesome.
- Thanks for leaving the ability to chose alternate font rendering in — I thought this might be on the chopping block. I hate XP’s rendering of generic web typefaces. Switching between the default and alternate actually exposed the cause of the header positioning bug on my Test Design 26 page, heh.
- Please implement middle-click tab close.
I was surprised to see CSS Animations and CSS Effects mentioned on the Features page — these are Apple CSS specs that (as far as I know) are still exposed in Webkit with the ‑webkit- prefix. The CSS Working Group site lists these modules as an upcoming working draft (unlinked but available on the w3c dev server). Are they mature enough for use outside of an closed, internal ecosystem? I must admit that I empathise with anyone who tries to get specs through the W3C process.
Speaking of specs in progress, I was delighted to see the Safari site’s written in HTML5 (yes I’m a hypocrit for advocating unfinished specs here and questioning them above, but HTML5 is much more mature). IE demands sacrifice, so the page includes
<script type="text/javascript" charset="utf-8"> document.createElement("article"); document.createElement("nav"); document.createElement("section"); document.createElement("header"); document.createElement("aside"); document.createElement("footer"); </script>
to make non-existent tags be treated as both non-void and styleable. The Safari startup page actually uses the <video> and <audio> tags too, and it sure was freaky to see video without Flash installed.
[Update: eek, the page isn’t valid HTML5. <section>, <header>, <footer> and <nav> are misused. For the <footer> links they’d be better off using a parent UL instead of <h3>s. Not sure what’s triggering the <script> error though.]
February 22, 2009
HTML 5 Reality
Great quote from Ian Hickson during the discussion on Rob Sayre’s reduced-scope spec:
> You’re the dictator. Am I reading the WHATWG process wrong?
Apparently. A dictator, by definition, has total power. I have nearly no power; I am contrained by legacy content, by the whims of implementators, by rational and logical argument, by the needs of authors and users, and by research.
On another note, Anne van Kesteren links to an awesome CSS thread which provides much opportunity for facepalming to any pragmatists reading.
February 20, 2009
The IE6 resistance
(Cleaning up an unfinished-post queue, for those wondering. This one’s a little skimpy but statistics are always fun.)
A while back I held a small workshop at TAFE on browser usage and the importance of verifying designs in multiple browsers. Lucky I don’t get sick of complaining about IE6; even now, seven years after its release, market share keeps it on our testing matrix:
- IE6: ~36%
- IE7: ~32%
- Firefox: ~19%
- Safari: ~3%
- Opera: ~2%
(Stats tallied from several public sources late last year)
Of course these stats are a rough average from several sources widely varying demographics (and the numbers don’t even add up to 100%).
One of the few serious benefits of MS’s Vista push is IE6 being erradicated in its wake. XP’s latest service pack still doesn’t include IE7 though — they must be facing off with a lot of corporate intranet admins whose business software still depends on IE6 Javascript bugs.
Curiously, Microsoft will be ‘pushing’ IE8 to Vista and XP via OEM channels (think Dell) as an optional component. Maybe web devs should start petitioning OEMs to enable it by default? Imagine writing only one stylesheet per website.
The alternative
Using the delightfully inflammatory title “Students to be taught there’s no God”:
http://www.news.com.au/story/0,27574,24797395–29277,00.html
I remain respectfully cynical of any organisation preaching ethical standpoints to children in the absense of parental supervision, but I might be a little less cynical in this case; like many centre-left thinkers (read: academic snob) I believe breaking the cycle of the all-seeing authoritarian father-figure is a worthy goal. The energy we inject into feeding religion could be better spent on educating the incoming generation on the need for common morality and respect built from our own experiences, not from sources irrationally divisive and scientifically and sociologically thousounds of years out-of-date.
To be blunt I’ve always seen Santa Claus as a microcosm for the greater religious direction: as irrational, inexperienced children with no understanding of the mores of larger society, most of us need a structure to keep us in check until we learn to rationalise on our own and outgrow the need to perform for the omnipresent being. Have we as adults ever outgrown the next phase?
(This bypasses the entire discussion on whether young children are even sentient, which is interesting in its own right.)
On the problem of exporting ideals and commonality to children, I think we’ve lost a lot by becoming a media-driven culture without the face-to-face family and community discourse that ties people together through shared experiences. And I understand that said discourse is a core part of the religious experience; I’d like that same discourse but without the parroting of ancient verse and the attribution of our moral structure to mystical beings. It genuinely speaks of our willingness to demote our potential. Do we actually want to improve? That involves growing up as a society and dropping a lot of baggage, and sadly for many people that baggage provides the commonality that allows us to speak to one another civilly, since most other avenues of bonding are closed off.
As a race we’re intrinsically attracted to storytelling and the want to believe in something greater than ourselves; I think that’s because we nominate any height we can’t yet reach for idolisation. Maybe that tendancy is inescapable without a change of wiring… but a discussion of voluntary humanitarian eugenics and genetic engineering is something I’ll leave for another post.
Graphic Improvements
A long standing problem with graphic files on the web is that there’s no lossy format with transparency options. Three options are incoming, all realistically long-term if you’re developing for the entire web and not one particular platform.
JPEG + SVG Filters in HTML = masked lossy images. Allows for both raster and vector masking, but only for Firefox 3.1 for now. This brings the additional benefits of the entire SVG filter lineup available anywhere in HTML.
Webkit’s CSS Masks applicable to any visual element entirely using CSS proterties. Allows for a raster mask or referencing an SVG. Isn’t as extensive as the SVG Bling approach — it’s intended purely for masking — but has lower barrier for entry.
JPEG-XR, a new JPEG format seemingly unrelated to the original bar the name. Higher quality, smaller filesize, options for lossless encoding, and an alpha channel. Conspiracists may question Microsoft’s involvement after the OpenXML travesty but as long as licencing is free and adoption higher than the wavelet-encoded JPEG standard from a few years back, I’m happy.
That which rates a last mention is Microsoft’s Compositor filter. The documentation hints at being able to perform calculations using an alpha channel, but I’ve no idea if that translates to final rendered transparency since the examples are too complex for me to spend time decyphering.
A while back I created a test design called Sans & Serif that needed a large high-colour transparent image with alpha blending (the leaves). PNG 32 did the job, but it’s non-lossy so the file size was ~210k. I ended up converting the leaves to 8‑bit with some visual trickery to hide the aliased edges. I’m looking forward to doing this properly.
December 13, 2008
Oh so true
T.V.Raman:
there’s a potential crisis for the W3C if we say “HTML 5 is so difficult to deal with that we’ll ignore it” then much of the work in W3C becomes irrelevant to deployment on the Web