Advertisement:
2by2host

Author Topic: Invalid CSS in default theme ?  (Read 648 times)

Offline NBK*Twitch

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
    • Twitch's World
Invalid CSS in default theme ?
« on: June 17, 2012, 04:04:32 PM »
I just noticed this earlier today.. When I run the default theme index.css through the validator it has three errors.


I have a picture attached below to show it. Now here is my question, why is this? I know in order to submit a theme and get it accepted you have to have valid html? Which I think is a good idea. However why is this not true for CSS and why does the default theme have invalid CSS. Making the in question code valid is not hard at all.




Twitch's WorldFree Computer Support Forum - My SMF Themes - For affordable custom themes PM me

Online Gary

  • Lead Customizer
  • SMF Super Hero
  • *
  • Posts: 14,679
  • Gender: Male
  • So this is the luck of the draw...
    • @Gazmanafc on Twitter
    • The Bongo Comics Fan Forum
Re: Invalid CSS in default theme ?
« Reply #1 on: June 17, 2012, 04:31:35 PM »
CSS validity is generally ignored for approvals.

The main reason for that is because of browser compatibility and some folks like to use CSS3.
Gary M. Gadsdon
Lead Customiser
Do NOT PM me unless I say so
Look here are three little dreamers,
ready to impress everyone
Listen up, cos it's not over
Our time has just begun!

The War of the Simpsons
Bongo Comics Fan Forum


Offline NBK*Twitch

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
    • Twitch's World
Re: Invalid CSS in default theme ?
« Reply #2 on: June 17, 2012, 04:41:16 PM »
CSS validity is generally ignored for approvals.

The main reason for that is because of browser compatibility and some folks like to use CSS3.
That I can understand, I just don't understand why the default theme has invalid css. It is only 3 errors which are easily fixed.

Twitch's WorldFree Computer Support Forum - My SMF Themes - For affordable custom themes PM me

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,831
    • wedgebook on Facebook
Re: Invalid CSS in default theme ?
« Reply #3 on: June 17, 2012, 05:01:57 PM »
So what are these easily fixed errors? How do you know they're not done for browser compatibility? (SMF 2.0 is compatible even with IE6, remember)

Offline NBK*Twitch

  • Full Member
  • ***
  • Posts: 611
  • Gender: Male
    • Twitch's World
Re: Invalid CSS in default theme ?
« Reply #4 on: June 17, 2012, 05:35:36 PM »
So what are these easily fixed errors? How do you know they're not done for browser compatibility? (SMF 2.0 is compatible even with IE6, remember)
I have the errors attached in the first post. I am pretty sure these are not done for IE6 since the fixes for IE6 has its own css.


I am not trying to cause trouble, I am simply wondering why these are not fixed since the fix is pretty simple.

Twitch's WorldFree Computer Support Forum - My SMF Themes - For affordable custom themes PM me

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,831
    • wedgebook on Facebook
Re: Invalid CSS in default theme ?
« Reply #5 on: June 17, 2012, 05:42:31 PM »
Pretty sure they're browser-based hacks.

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,901
  • Gender: Male
Re: Invalid CSS in default theme ?
« Reply #6 on: June 17, 2012, 08:11:14 PM »
The bigger point is - does it really matter? There is three errors on the google home page as well.

Don't get me wrong, if an error really messes up how you see a page then fair enough. But as mentioned earlier those "non valid" hacks are there for a reason.


Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,046
  • Master of BBC Abuse
Re: Invalid CSS in default theme ?
« Reply #7 on: June 17, 2012, 08:38:36 PM »
They look fine to me. Can't see why they'd be listed as invalid.

http://www.w3schools.com/cssref/pr_font_font.asp

The default css just lists font size and font family, which are the minimum requirements for the font tag to be valid.
"My idea of heaven consists of all the things I would go to Hell for."

I need another coding language like I need tertiary syphilis.

Antechinus modzRantyheinous themez - PSD pack for 2.0.x default theme