SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Evangelist
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    browsers using boxshadow without rgba

    Does anyone know offhand whether there are browsers that support boxshadow without supporting rgba?

    I want to use Modernizr and was wondering if I have to create separate styles for the boxshadow with and without rgba. Or does on assume that if they support boxshadows they also support rgba.

    Thanks

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    I think you can assume that any browser supporting one will support the other. IE9 is the only IE version to support either, but the other modern browsers support both. How far back do you need to go?
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Evangelist
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I don't need to go back that far but I'm not sure that really matters in this case because with Modernizr, I will be creating styles on elements that use boxshadow (using rgba) and different ones for those not supporting boxshadow.

    So if they don't support boxshadow, I won't use rgba in this case. There are separate checks for support of boxshadow and rgba. I think this probably leans more to the standalone use of rgba rather than using rgba in boxshadow. So I get the feeling it is probably pretty safe to assume that if they support boxshadow, they also support rgba.

    Thanks again.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,107
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    I don't want to pretend to be your ultimate authority on it, but that's what I would do.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  5. #5
    SitePoint Evangelist
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would venture a guess that you are far more of an authority than I.

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,276
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    You can find support tables for box-shadow at the mozilla site.

    Caniuse.com shows the support tables for rgba and box-shadow so I think you can safely assume that those browsers will support the rgba in box shadow.

    CSS3info has some good examples.

  7. #7
    SitePoint Evangelist
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great thanks, so proof that all browsers that support box-shadow do also support rgba.


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
  •