Page 1 of 1

Lightbox Plus fails CSS validation

Posted: Wed Feb 17, 2010 11:08 pm
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?

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 1:01 am
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

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 1:15 am
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

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 6:36 pm
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.

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 10:09 pm
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

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 10:28 pm
by Neut
'Interesting' argument to say the least.
I was only trying to help, I did expect the Spanish Inquisition! Never mind...

Re: Lightbox Plus fails CSS validation

Posted: Thu Feb 18, 2010 11:55 pm
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)

Re: Lightbox Plus fails CSS validation

Posted: Fri Feb 19, 2010 7:07 am
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

Re: Lightbox Plus fails CSS validation

Posted: Fri Feb 19, 2010 12:04 pm
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

Re: Lightbox Plus fails CSS validation

Posted: Fri Feb 19, 2010 2:40 pm
by Neut
Friends!
OK then, who's for a beer?

Re: Lightbox Plus fails CSS validation

Posted: Fri Feb 19, 2010 3:19 pm
by Don Chambers
Neut wrote:Friends!
OK then, who's for a beer?
You buying??!! :mrgreen: :mrgreen: :mrgreen:

Re: Lightbox Plus fails CSS validation

Posted: Fri Feb 19, 2010 3:21 pm
by yellowled
Did someone just mention beer? :mrgreen:

YL