Can js check if the browser supports CSS3 or not?

    2 answers 2

    There are ready libraries. I use modernizr.com

    It is necessary to connect the modernizer in the cap, and not at the end of the body.

    After the page is loaded, the html tag contains the following classes: cssgradients or no-cssgradients further in CSS you can do this:

    .selector { CSS3-код градиента } .no-cssgradients .selector { однопиксельная картинка с градиентом } 

    To track the case of disabled JS, you should tag the html tag the class no-js. If JS is disabled, this class will remain. If enabled, will be replaced by js.

      CSS3 is not standardized yet, and different browsers can support its various features or not.

      So you need to check the specific feature that you want to use.