SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)

    Declare a Stylesheet as CSS3

    Is it possible to explicitly declare a stylesheet as CSS3 for validation?

    I've been experimenting with some CSS3 features which, even though they work in browser, seem to fail validation with the W3C checker because my stylesheet is being checked as CSS2.

    Trying to fill the unforgiving minute
    with sixty seconds' worth of distance run.

    Update on Sitepoint's Migration to Discourse

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,177
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    It's up to the validator what flavor it's checking for, rather than your style sheet. In the W3C CSS validator, click "More Options" to choose the flavor of CSS you want to check. CSS3 is now an option.

    EDIT: mind you, the validator seems to choke on vendor-specific properties.

  3. #3
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Thanks, it worked.

    Too bad I can't do that from Web Developer Extension.

    Trying to fill the unforgiving minute
    with sixty seconds' worth of distance run.

    Update on Sitepoint's Migration to Discourse

  4. #4
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Actually you can Shaun....

    Tools > Edit Tools... > Select "Validate CSS" > Click "Edit"

    And edit this part of the string "profile=css21" to "profile=css3", click "OK" and bingo.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •