Recent Topics

1 Jul 12, 2016 00:07    

An ongoing problem, over the last dozen or more versions. I usually edit the files mentioned by removing offending parts but have no idea of the real outcome.

You can check out my site at http://calstock.org.uk/elf.php and use the css validation link at bottom right of footer or use this link to see the errors and warnings http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fcalstock.org.uk%2Felf.php

Maybe someone could help me understand if the classes and parameters are needed and/or if they can be scripted in such a way to validate.

2 Jul 12, 2016 01:32

We use industry standard minifier scripts to make the CSS files as small and efficient as possible. It might be the case that they don't generate 100% valid output but they generate output that is understood by all browsers. However in this case, some of the errors shown don't make sense to me and look more like the validation script is getting confused.

3 Jul 12, 2016 06:05

OK Thanks, will see what I can find

/rsc/build/b2evo_base.bmin.css


Working from bottom up of the 22 errors,

  1. 110% is not a valid letter spacing, I find it should only be a pixel value
  2. http://www.w3schools.com/cssref/pr_text_letter-spacing.asp though {em} works too http://www.w3schools.com/cssref/tryit.asp?filename=trycss_js_letter-spacing


    Another find https://www.hscripts.com/tutorials/css/letter-spacing.php but no % option


    So I've changed 110% to 0.1em




  3. Corrected .btn-default:hover{color:333; by adding hash before number :)



  4. @-moz-document url-prefix(){.notes a.roundbutton{top:0}} This seems pointless so have modified it to .notes a.roundbutton{top:0} in case there's some use for that bit.



Ok I have the errors down to 9 by adding tilda ~ before the progid:DXImageTransform ~progid:DXImageTransform
This removes two of the three errors for each instance.

OK Changed
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a0a0a0', endColorstr='#d2d2d2')
to
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#a0a0a0', endColorstr='#d2d2d2')"
prepending with-ms- and surrounding progid:DXImageTransform.Microsoft.gradient(startColorstr='#a0a0a0', endColorstr='#d2d2d2') with quotes removes all errors of this type (single or double quotyes seem to work)
Also seems ok to remove quotes around colour values


I've split the code into lines to better see where the errors are: I only have 4 errors now:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fcalstock.org.uk%2Felf.php

This accounts for three of them, this is the code without the three error messages
a.rollover_sprite:hover span.icon{visibility:hidden;visibility:visible\0/}@media screen and (min-width:0\0){a.rollover_sprite:hover span.icon{visibility:visible}}

and one more, this is the error message
unrecognized media \000000screen \0screen{#styled_contentblock span[class*=status] span,.evo_contentblock span[class*=status] span{top:-15px;left:-2px}}

UPDATE: Separated the above so problem lies only in first line below
@media \0screen{#styled_content_block span[class*=status_] span{top:-15px;left:-2px}}
.evo_content_block span[class*=status_] span{top:-15px;left:-2px}

4 Jul 12, 2016 14:46

Ok, we'll have a deeper look.

5 Jul 13, 2016 00:12

is the \0 just for IE 8? If so I may just cut it out

6 Jul 13, 2016 11:03

Have commented out the offending parts until I find either a solution or a valid use for them.

/*a.rollover_sprite:hover span.icon{visibility:hidden;visibility:visible\0/}@media screen and (min-width:0\0){a.rollover_sprite:hover span.icon{visibility:visible}}*/
and
/*@media \0screen{#styled_content_block span[class*=status_] span{top:-15px;left:-2px}}*/

9 Aug 11, 2016 23:07

Ah sorry wrong topic. So I reposted on the other one and this one is still open.


Form is loading...