Conditional comments are a special HTML comment syntax that will be ignored by all browsers except IE.
Such comments are commonly used to serve additional stylesheets to specific versions of IE:
<!--[if IE 8]> <link rel="stylesheet" href="/ie-8-specific-overrides.css"> <![endif]-->
To be ignored is the only purpose of a comment. Unless, however, you’re dealing with IE conditional comments, in which case the contents of a comment will pretend to be HTML under the correct conditions.
Should we ignore all comments even though they might refer to resources that require CSS validation?
This is something I decided I needed to look into.Continue reading
Today I finished deploying to production some excellent CSS validation improvements:
- updated to the latest W3C CSS validator
- validation of stylesheets in IE conditional comments
- improved CSS validation robustness
I’m really quite sure that the results of such tests are of no value and that almost no-one uses this feature.
Does (relatively) anyone use this feature? Let’s flex our SQL fingers and see whether my assumptions match reality.Continue reading
This change seemed a good idea at the time. It may well have been a good idea at the time.
Our 120th updates newsletter went out today.
Highlights from this week:
Expect the next newsletter in a week from now on 15 April 2015Read full newsletter