Lightbox Plus fails CSS validation

Found a bug? Tell us!!
Post Reply
Neut
Regular
Posts: 91
Joined: Sat Jun 17, 2006 7:51 pm
Location: NL, Earth
Contact:

Lightbox Plus fails CSS validation

Post by Neut »

Hi,

I'm using the serendipity_event_lightbox-plugin, the lightbox_plus option.
It works fine, but fails the W3C CSS level 2 Validator (http://jigsaw.w3.org/css-validator/):

Code: Select all

URI : http://www......../plugins/serendipity_event_lightbox/lightbox_plus/lightbox_plus.css
29 * html #lightboxOverallView, * html #overlay  Parse Error opacity=50)  
29 * html #lightboxOverallView, * html #overlay  Parse Error opacity=50)  
When I disable this line in lightbox_plus.css

Code: Select all

/*	filter: Alpha(opacity=50); */
my CSS is validated.

Bug?
Who is General Failure, and why is he reading my disk?
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox Plus fails CSS validation

Post by onli »

First of all: CSS don't have to be validated. The browser shall ignore CSS he don't understand, so that's not problematic.

According to http://www.quirksmode.org/css/opacity.html, it's the correct syntax for ie5-7.
sincerely
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Lightbox Plus fails CSS validation

Post by yellowled »

Neut wrote:When I disable this line in lightbox_plus.css

Code: Select all

/*	filter: Alpha(opacity=50); */
my CSS is validated.

Bug?
No. This is simply a case where the validator (which is kind of pointless for CSS anyway, as onli already pointed out) fails. The line you're referring to actually isn't even CSS, it is a proprietary filter interpreted only by IE. (Other browsers ignore it, but the validator apparently doesn't realize that.)

This particular filter is used to "emulate" transparency or better: opacity in transparent background images, most likely PNG images. (Which especially IE6 doesn't handle too well, depending on their exact type.)

YL
Neut
Regular
Posts: 91
Joined: Sat Jun 17, 2006 7:51 pm
Location: NL, Earth
Contact:

Re: Lightbox Plus fails CSS validation

Post by Neut »

Hi,
personally I do not care if the CSS of my site gets validated or not. As long as it works without errors on de various browsers en OSses, I'm happy!
But... we want to promote S9Y as a serious CMS, so that's why I thought it was useful to bring this matter to your attention.
Who is General Failure, and why is he reading my disk?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Lightbox Plus fails CSS validation

Post by yellowled »

Neut wrote:But... we want to promote S9Y as a serious CMS, so that's why I thought it was useful to bring this matter to your attention.
No, we want to promote it as a blog engine. That's what it is, period.

Apart from that, this effect would appear in any CMS, blog engine or website using Lightbox+.

YL
Neut
Regular
Posts: 91
Joined: Sat Jun 17, 2006 7:51 pm
Location: NL, Earth
Contact:

Re: Lightbox Plus fails CSS validation

Post by Neut »

'Interesting' argument to say the least.
I was only trying to help, I did expect the Spanish Inquisition! Never mind...
Who is General Failure, and why is he reading my disk?
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Lightbox Plus fails CSS validation

Post by Don Chambers »

Neut wrote:'Interesting' argument to say the least.
I was only trying to help, I did expect the Spanish Inquisition! Never mind...
I hope you do not interpret Yellowled's answer as "the Spanish Inquisition". I think his point was that s9y is attempting to be the very best blog engine it can be, but not necessarily a multi-purpose-cms solution. I can assure you he has used s9y for much more than a simple blog!! :wink:

Anyway, whomever the original authors of the lightbox concept are have worked hard to come up with css that works across a bunch of different browsers. Someone else came along and then got that concept to work with s9y. While most developers do everything they can to pass validation tests, sometimes it is necessary to fail if the end user experience is superior. 8) 8)
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Lightbox Plus fails CSS validation

Post by yellowled »

Neut wrote:'Interesting' argument to say the least.
It simply lacks some features which a "true" CMS would need and which, as far as I understand the development process, are not very likely to be implemented simply because they are unneccessary in a blog engine and/or hard to implement and/or would be an overhead.

While it is very well possible (although requiring both compromises and some handiwork) to use s9y as a CMS for small sites, it really should not be promoted as a CMS in my humble opinion.

YL
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Lightbox Plus fails CSS validation

Post by onli »

I was only trying to help, I did expect the Spanish Inquisition! Never mind..
And thank you for that :) If that'd be a real error, it could've been quite possible we oversaw that.

Text sometimes sounds harsher in your own ears than if someone spoke the same lines, I'm quite sure no one of us wanted to sound inquisitorial ;)
sincerely
Neut
Regular
Posts: 91
Joined: Sat Jun 17, 2006 7:51 pm
Location: NL, Earth
Contact:

Re: Lightbox Plus fails CSS validation

Post by Neut »

Friends!
OK then, who's for a beer?
Who is General Failure, and why is he reading my disk?
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Lightbox Plus fails CSS validation

Post by Don Chambers »

Neut wrote:Friends!
OK then, who's for a beer?
You buying??!! :mrgreen: :mrgreen: :mrgreen:
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Lightbox Plus fails CSS validation

Post by yellowled »

Did someone just mention beer? :mrgreen:

YL
Post Reply