CSS3 @supports

4/Dic/2017 42

CSS @supports

CSS3 trae consigo un nuevo selector como parte del grupo condicional feature queries: @supports. Esta regla (no es en sí un selector) prueba si el browser soporta cierto par de propiedad: valor y los operadores AND, IN, OR.

Uso:

Por ejemplo, si se quiere determinar si el browser soporta CSS Grids, se utiliza la nomenclatura como a continuación:

@supports (display: grid) {
  .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    grid-auto-rows: minmax(100px, auto);
  }
  .column-one {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  ...
}

JS Bin on jsbin.com

Para algo más complejo, en el siguiente ejemplo preguntamos si el browser no soporta CSS Grids para entregar un fallaback:

@supports not (display: grid) {
  div { float: left; }
}

Soporte:

Actualmente su soporte es amplio en browsers modernos, salvo a la fecha de la excepción de IE11 el cual no tienen ningún soporte.

Screen Shot 2017-12-04 at 10.54.49

Cuestionamiento:

Esto es algo personal, pero este feature querie en específico me causa un regreso a la web que era reinada por los browsers y no por los estándares. Escribir código para navegadores específicos y dejar sin soporte a otros que no tienen las mismas características es volver un poco a la época de los Applets, prefijos -webkit -moz y otros. Ojalá sea sólo una impresión mía.

Links:

Comentarios

  1. dublaj [#]

    I value the blog. Really looking forward to read more. Keep writing. Nanette Avigdor Wavell

  2. turkce [#]

    Lots of good tips here! My wife and I have saved thousands over the past couple years by couponing. Definitely worth the time! Adah Byron Imelda

  3. movie online [#]

    I enjoy reading through a post that will make people think. Also, many thanks for allowing me to comment! Jinny Burl Saretta

  4. turkce [#]

    This is the only place I can come and say, I need a video Casey. You are so talented. Do paint drying, I will watch. Emelyne Archibold Shaw

  5. turkce [#]

    I was very pleased to find this web-site. I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post. Lurline Regan Ankney

  6. altyazili [#]

    Wow, great blog. Really looking forward to read more. Grier Allyn Cavan

  7. 720p [#]

    Hey, The only issue I had with the 4017 was not the sound but the output of the microphone itself. I had to add close to 10 db more at the lectro transmitter to get the same levels. That was a bit of a deal breaker for me as my cmit5u has been very good to me in all conditions. I have had once to change it because of the tiking from humidity. Have you noticed the level discrepancy as I have? Kora Godfry Cullan

  8. turkce [#]

    Wonderful article! We are linking to this particularly great article on our site. Keep up the great writing. Helena Antoine Tim

  9. dublaj [#]

    We stumbled over here coming from a different website and thought I might check things out. I like what I see so i am just following you. Look forward to going over your web page again. Benoite Maury Loraine

  10. erotik [#]

    Thanks a lot for the post. Really thank you! Awesome. Myrtie Anders Davies

  11. indirmeden [#]

    This is a good tip particularly to those new to the blogosphere. Carol-Jean Jock Sedlik

  12. indirmeden [#]

    Keep up the good work , I read few content on this internet site and I think that your site is very interesting and has got sets of excellent information. Ranee Byrann Jessa

  13. turkce [#]

    These are in fact cool YouTube movies, its my fortune to visit this web site and finding such awesome YouTube movies. Athene Ade Aubine

  14. erotik [#]

    I agree completely with what you said. Wonderful Stuff. Maintain it going.. Agnesse Myca Heinrick

  15. erotik [#]

    Thanks for the tips you have provided here. In addition, I believe usually there are some factors which will keep your car insurance premium decrease. One is, to think about buying automobiles that are inside good set of car insurance organizations. Cars which are expensive will be more at risk of being robbed. Aside from that insurance policies are also based on the value of your truck, so the more expensive it is, then higher your premium you make payment for. Phylys Giulio Ronalda

  16. indirmeden [#]

    Undeniably believe that which you said. Your favorite justification appeared to be on the net the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could take a signal. Will likely be back to get more. Thanks Gaylene Arnaldo Wallis

  17. erotik [#]

    I like this site because so much useful material on here :D. Cindra Morton Pence Selia Charles Koby

  18. erotik [#]

    Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog? My website is in the exact same area of interest as yours and my users would genuinely benefit from some of the information you provide here. Please let me know if this alright with you. Appreciate it! Debra Alphonse Ahmar

  19. turkce [#]

    one of our visitors recently proposed the following website Shannen Jecho Aurelius

  20. erotik [#]

    A Halti is a good bet for the doggo. Worked a charm for ours! Stevana Ange Mariellen

  21. shelldownload.org [#]

    It’s going to be finish of mine day, but before finish I am reading this enormous article to increase my experience.

  22. antalya haberleri [#]

    Incredible quest there. What occurred after?

    Thanks!

  23. Shell download [#]

    This design is wicked! You most certainly know how
    to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

  24. erotik [#]

    After exploring a few of the blog posts on your web site, I truly like your technique of writing a blog. I bookmarked it to my bookmark site list and will be checking back soon. Please check out my website as well and tell me how you feel. Tammy Baldwin Behre

  25. turkce [#]

    Very nice article. I definitely love this website. Continue the good work! Ede Fair Luisa

  26. erotik [#]

    I am reallyactuallyin facttrulygenuinely thankfulgrateful to the ownerholder of this websiteweb sitesiteweb page who has shared this greatenormousimpressivewonderfulfantastic articlepostpiece of writingparagraph at hereat this placeat this time. Prissie Winifield Kellie

  27. https://www.megatakip.com [#]

    ucuz takipçi avantajları oldukça fazladır.
    Öncelikle takipçi satın almanın ardından profildeki,
    paylaşımların az beğeni alması durumu gerçekçi bir imaj yaratmamaktadır.

    Bu bağlamda daha doğal bir görüntü yaratmak isteyen kişilerin beğeni düzeylerine
    de dikkat ettiği görülmektedir.
    Takipçi sayısıyla birlikte beğenilerin de belli seviyede yüksek olması gerçekçiliği arttırmaktadır.

    .

  28. erotik [#]

    I was wondering if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?| Atlanta Jerry Arathorn

  29. turkce [#]

    Thanks a lot for providing individuals with an exceptionally breathtaking possiblity to read critical reviews from this site. It is usually very useful and full of a great time for me personally and my office co-workers to visit your web site at the least 3 times in a week to see the newest stuff you have. And definitely, I am always pleased with the dazzling knowledge you serve. Certain 2 points in this article are particularly the most impressive I have had. Juliette Lev Rehm

  30. erotik [#]

    As soon as I found this web site I went on reddit to share some of the love with them. Corinne Gun Pasol

  31. Ciltte Kahverengi Lekeler Neden Olur [#]

    If you are going for best contents like I do, simply pay a visit this site daily for the reason that it presents feature contents, thanks

  32. instagram aylık türk beğeni [#]

    Good day! I could have sworn I’ve been to this website
    before but after browsing through some of the post I realized it’s new to
    me. Nonetheless, I’m definitely delighted I found it and I’ll be bookmarking and checking back frequently!

  33. ucuz instagram takipci [#]

    Great post.

  34. cialis tadalafil [#]

    cialis prices

  35. https://www.lekekremim.com/ [#]

    I absolutely love your site.. Excellent colors & theme.
    Did you build this site yourself? Please reply back as I’m wanting
    to create my own website and would love to know where you got this from or exactly
    what the theme is called. Kudos!

  36. instagram takipçi satın al [#]

    Hi there every one, here every one is sharing these knowledge, thus it’s good to read this website, and I used to pay a quick visit this website daily.

  37. instagram takipçi [#]

    Thanks for sharing your info. I really appreciate your efforts and I am waiting for your next write ups thank you once again.

  38. Fnuozf [#]

    tadalafil 20 – tadalafil canadian pharmacy tadalafil cost

  39. Zbpndj [#]

    buy real tadalafil online – sildenafil vs tadalafil tadalafil online reviews

  40. leke kremi [#]

    I enjoy reading an article that will make people think.
    Also, thanks for allowing for me to comment!

  41. Megalis [#]

    megalis 20 online tadalafil 5mg india

  42. takipçi al [#]

    Undeniably believe that which you said. Your favorite reason appeared to be on the internet the simplest thing
    to be aware of. I say to you, I definitely get annoyed while people
    think about worries that they just do not know about.
    You managed to hit the nail upon the top as well as defined out the
    whole thing without having side effect , people can take a signal.
    Will probably be back to get more. Thanks

Deja tu Comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

CSSLab