CSS validation

Zielu - January 23, 2009 - 08:15
Project:Lightbox2
Version:6.x-1.9
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

File: lightbox2/css/lightbox.css
Line: 43
Fragment: *left: 0%;

My suggestion is to delete this line to avoid validator warning.

#1

ceri008 - February 6, 2009 - 09:02

It's very strange, I have Lightbox on two neraly similar websites.

Page1: CSS-Validation = OK
Page2: CSS-Validation = same as issue above !

What will happen, if I delete the line with *left: 0%; ???
What does this line do ???

#2

stella - February 6, 2009 - 10:27

It will prevent the lightbox appearing in the correct position in IE.

#3

Zielu - February 11, 2009 - 06:34

Hi Stella!

So why not use two CSS files, one named styles-ie.css and using it conditionally to avoid validator warnings in less problematic browsers?

#4

TheresaB - May 4, 2009 - 21:14

It seems I made duplicate issue with my post http://drupal.org/node/453512 I have since removed the *left: 0%; and that fixed that error with only this error remaining:
168 #overlay_default Property opacity doesn't exist in CSS level 2.1 but exists in [css3] : 0.6

I was also getting 200+ warnings in the W3C validator even of Drupal core module css files. But when I submitted each individually in the validator they showed now errors. So being inquisitive I commented out

#overlay_default {
  opacity: 0.6;
and now my site is completely valid and ALL of the warnings are gone.

So now my question is what is

#overlay_default {
  opacity: 0.6;
used to support what browsers?

#5

daemon - July 5, 2009 - 17:33

It seems to only affect the position of the loader icon, could anyone confirm?

#loading {
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
  position: absolute;
  top: 40%;
  left: 45%;
  *left: 0%; /* does not validate */
}

#loadingLink {
  display: block;
  background: url(../images/loading.gif) no-repeat;
  width: 32px;
  height: 32px;
}

Applied to this piece of code:
<div id="loading"><a href="#" id="loadingLink"></a></div>

#6

stella - July 5, 2009 - 18:34

Yes it only affects the position of the loading icon

#7

daemon - July 6, 2009 - 03:41

Do you think there is another way to achieve the desired result? Centered loader.
I tried but without any success, we could reach to an expert in CSS or a CSS forum if we can extract any parent elements that affect this.

#8

hefox - October 29, 2009 - 13:54

Additional validation error

262  #lightboxImage  Property -ms-interpolation-mode doesn't exist :  bicubic

This property was introduced in #419204: IE image resizing patch

 
 

Drupal is a registered trademark of Dries Buytaert.