Closed (duplicate)
Project:
Lightbox2
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2008 at 03:37 UTC
Updated:
4 Oct 2009 at 22:51 UTC
I received the following errors from http://jigsaw.w3.org/css-validator/
URI : http://archiveofawesome.net/sites/all/modules/lightbox2/css/lightbox.css?H
43 #loading Parse Error *left: 0%;
44 #loading Parse error - Unrecognized }
166 #overlay Parse Error opacity=60)
167 #overlay Property -moz-opacity doesn't exist : 0.6
168 #overlay Property -khtml-opacity doesn't exist : 0.6
169 #overlay Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 0.6
(listing as a bug, though it may also be a support request)
What I'm wondering is if any of these styles are for specific browsers... because if so I'd like to place them in a conditional style sheet so the site validates at least in Firefox.
Thanks in advance for your advice!
:) Scott
Comments
Comment #1
stella commentedI've removed all but the "opacity" setting (line 169), from all the lightbox.css files as the browser specific hacks are no longer required. This is because the opacity is now set in the javascript code. I've left the "opacity" line in as it is valid CSS (ver 3). This change will be included in the next dev release, available later today.
Cheers,
Stella
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella
Comment #4
j0rd commentedAs far as I know the current 6.x-1.9 code still breaks CSS 2.1. Including the site I'm working on where client complains about not validating =(
Take a peek:
http://netleasedgroup.com
Also breaks CSS3 validation:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.netlea...
Not sure what kind of hack this is, but perhaps it has a reason I'm un-aware of:
Comment #5
Mark Theunissen commentedJust noticed this isn't fixed. There is still the "*left: 0%;" in lightbox.css.
Is this an intentional hack?
Comment #6
vthirteen commentedsubscribe
Comment #7
j0rd commentedI also just tested a new site with validation yesterday and noticed I'm still failing CSS validation because of lightbox. This issue will be having it's first birthday tomorrow :D
Comment #8
srobert72 commentedOnly 1 error remaining in LightBox2 6.x-1.x-dev (2009-Aug-10)
wrong character * in lightbox.css?P line 43
Comment #9
andrewsuth commented+1 to remove it from the CSS module file, unless someone knows better?
It seems to be the usual invalid IE6 hack. I removed the following line from
lightbox.css:*left: 0%;I have tested it in IE 6, FF 3, Chrome, Opera and Safari and have had no problems so far. Can someone test this thoroughly in all IE versions?
Comment #10
stella commentedduplicate of #363038: CSS validation