Skip to content

@supports test #648

Closed
Closed

Description

@ryanseddon

Breaking this out of the @Viewport test #604.

http://jsfiddle.net/ryanseddon/zusu5/2/

Really easy detect by looking for "CSSSupportsRule" in window. I think that's good enough to push a plugin now.

Objections?

Activity

  1. paulirish commented on Aug 7, 2012

    @paulirish
    Member

    SGTM.

    can you doublecheck the webkit patch to make sure it adds this item to the
    CSSOM?

  2. ryanseddon commented on Aug 8, 2012

    @ryanseddon
    MemberAuthor

    I'm making an assumption and it's not clear in the patch (though it looks like the CSSGrammar.y file might be responsible for that?) if it is in there but they do expose every other At-Rule on the window object. I got the latest nightly for windows and it's not in there yet.

  3. paulirish commented on Aug 8, 2012

    @paulirish
    Member

    Well, I'm not sure about webkit either. It doesnt look like it exposes this, but it certainly should..

    GOod to go for now and we'll keep an eye on this

  4. ryanseddon commented on Aug 9, 2012

    @ryanseddon
    MemberAuthor

    Just for reference there is talk on the www-style mailing list of introducing a CSS global where things like supports will live under.

    CSS.supports()
    

    I'll push the current detect real soon.

  5. added a commit that references this issue on Feb 22, 2015
    15c917f
  6. added a commit that references this issue on Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions