Hixie's Natural Log

2003-04-22 17:11 UTC Buzz: Hallucinogenic drugs?

I used to be a firm supporter, and indeed (a long time ago) one of the few most active members, of the Web Standards Project. (You may remember the top 10 CSS problems in various browsers that the CSS Samurai wrote.)

A few years ago they started an "Upgrade Campaign", to try to entice users to upgrade to more compliant browsers. Today Mark announced that they had recently retired this campaign.

To quote:

The percentage of standards supporting browsers in use has increased tremendously. The percentage of non-standards supporting browsers is low and doing nothing but decreasing.

Well let's see. Google says:

Microsoft Internet Explorer 6.0's market share has been rising steadily since September 2001, and now has around three times more market share than the next two most popular browsers, Internet Explorer 5.0 and Internet Explorer 5.5. Other browsers have marginal market share.

Now, I don't mean any offense to Microsoft, but in what world is MSIE 6.0 a standards supporting browser that doesn't give authors a difficult time when trying to write Web sites?

Maybe I am too optimistic, but when I ask for standards support, the idea is that you can write the page once and know that all UAs will follow the specs. Given the many discussions I see on css-discuss, it is quite clear that we are not there yet. Even given that IE6 is over 18 months old now, and so cannot be expected to support things like CSS2 Selectors — let alone the CSS3 Selectors, support for which is already growing in many other UAs — or advanced CSS2 features like fixed positioning, table layout, generated content, or the inherit keyword; even given that because it is so old in Internet terms it can't be expected to support newer standards like XHTML or MathML; even given that Microsoft have limited resources and so can't be expected to support things such as data: URIs or alternate stylesheets; even granted that some of its bugs were technically correct when it was released and have only become non-compliant after the spec was clarified; even given all that, it still has numerous layout-breaking and script-breaking bugs. Totally broken margin collapsing. Totally broken box model. Totally broken float wrapping. Broken CSS parser. Buggy CSS1 selector engine. Buggy white space handling. Poor support for the 'ex' unit. Totally broken inline box model. Broken 'text-decoration' support Utterly broken HTML <object> support. No support for the HTML <link> element. Broken HTML comment parsing. Broken relative URI support. Need I go on?

Pingbacks: 1 2

2003-04-20 20:01 UTC DOM2 CSS needs work

I was sharply reminded today that we (the CSS working group) really need to do something about the CSS object model. I was given a simple task: Increase the width of element by 3em.

As far as I can tell, currently the official way of doing this is:

document.getOverrideStyle(element, null).getPropertyCSSValue("width").setFloatValue(CSS_EM, 3 + document.defaultView.getComputedStyle(element, null).getPropertyCSSValue("width").getFloatValue(CSS_EM));

Here is how I propose it be done (this would be exactly equivalent to the above):

element.computedStyle.width.em += 3;

Something to look at once we've finished with CSS2.1, maybe.

2003-04-17 21:14 UTC "Oh no I am so confused"

September 25th. I wanted to do some database work today, so one of my friends suggested I download something called "Firebird". I found two packages... one called "Mozilla Browser" whose codename was "Firebird™ Browser", and one called "Firebird, Relational Database for the New Millennium". How confusing! I don't know which I should download.

2003-04-17 13:23 UTC Handshake protocol showcase

--> Xiven (Xiven@modem-1098.crocodile.dialup.pol.co.uk) has joined #mrt
--- L gives channel operator status to Xiven
--> Kamakaze (Kam@dial-62-64-226-80.access.uk.tiscali.com) has joined #mrt
--- L gives channel operator status to Kamakaze
<Xiven> lo
<Kamakaze> lo
<Hixie> lo
<Hixie> bye, lunch
<Xiven> :)
<Kamakaze> bbl
<-- Kamakaze has quit (Quit)
<Xiven> cya
<Xiven> bbl
<-- Xiven has quit (Quit: Small flaw in d4 pl4n boo)

2003-04-16 02:16 UTC Finding encodings from codepoints

Does anyone know of a site that, given a code point ("0xC6") and a UNICODE character ("U+0027"), will return a character encoding? In other words, is there a site where I can ask the question "in which encoding is 0xC6 an apostrophe"?

It seems like it would be easy to implement given a bunch of codepoint to UNICODE mapping tables (such as those that any Web browser contains). I guess if no-one knows of one I'll just have to make my own...