Re: - Web pages unstable after conditional comments added



Andy Dingley wrote:
On 24 Nov, 17:09, Chris Beall <Chris_Be...@xxxxxxxxxxx> wrote:
URL:http://ulsterliteracy.org/sandbox/ (all pages)

* Don't use conditional comments.

I would prefer not to. I would prefer to code to standards and not worry about individual browsers.


* Don't use display: table; - use <table> instead.

I would prefer not to. I like the concept of semantic HTML. There is no semantic link between the logo and the banner.



If your content merits using a "grid layout", then the HTML+CSS way to
do this is with a <table> element. If it doesn't warrant a grid, then
hiding this by just using CSS' display: table; is no excuse.

No it is not an excuse. It is a way to prevent audio UAs from presenting the data as tabular when it clearly is not.
Some day, perhaps, we will have grid positioning (http://www.w3.org/TR/2007/WD-css3-grid-20070905/), but I'm not holding my breath.


CSS' table properties were added in a well-intentioned but doomed
attempt to use CSS as a presentation language for XML. They were never
intended for HTML use, other than being bound by default to <table>.
As a result, browser support for this is problematic.

In theory, in a fluffy abstract and orthogonal standards-based world,

Yes, that's the world I'm looking for. Especially the fluffy part. :-)

then any CSS property value could be applied to any element for which
it was permitted, not just those for which it is supported and works
correctly. But that's not the world we have to work in.

It's _sometimes_ (but rarely) worth arguing with a browser.

In this case I think it may be worthwhile. A failure that remains uncorrected from FF 2.0.0.20 through 3.5 (if that should prove to be the case), is worth fixing, particularly if it results in other obscure and intermittent symptoms. I agree that most folks would ignore or circumvent it and move on.

It used to
be an important task, as there was no other way to get things done.
It's less important now as most stuff does simply work as intended.
Where there's a good alternative (using <table>) and there's so little
to gain otherwise, it's just not worth it.

I almost skipped the conditional comments, even though the design failed on IE6, but I felt I couldn't ignore IE7, which had the same deficiency.

Fortunately, no one is paying me for doing this, so I can afford to pursue my own muse.

Chris Beall
.



Relevant Pages

  • Re: My D80 & D90 gallery has moved
    ... Since it works fine in Safari, there's not any worth to the standards ... Is it seriously broken in any browser or platform? ... DPReview) into the validator... ...
    (rec.photo.digital)
  • Re: My D80 & D90 gallery has moved
    ... to this viewer. ... Is it seriously broken in any browser or platform? ... There certainly is a "worth to the standards". ...
    (rec.photo.digital)
  • Re: Need help on modifying and assembly of a small program!
    ... "broken"...every other "main" browser handles the situation correctly, ... per the W3C standards and RFCs that they should... ... Microsoft won't listen to "put a human on the end of the postmaster ... have two hard drives in it (one 15GB, the other 4GB...yes, not too great by ...
    (alt.lang.asm)
  • Re: Development with IE 7 for non-Windows users.
    ... and standards compliant, but the reality is that the Internet is a segmented ... market with a menangery of browser platforms in use by users. ... I don't want to bash Microsoft, but I feel this is starting to ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Personals Site - designer needed.
    ... >>> with a browser only the smallest of minorities would use? ... And the "universal" ones that comply with w3c standards. ... >>> attempted to access the site using Lynx. ... > My point is that if they render properly in the browsers that make up ...
    (uk.people.disability)