Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issue with w3 Total Cache


  • Andrea Grillo
    Participant

    @agengineering

    Hi,

    i found an error in your css file. I read this media query:


    @media
    screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    -webkit-text-size-adjust: none;
    }

    This rules does’nt work because it is semantically incorrect.
    Normally the plugin works fine but if you try to minify your css file (I tested it with w3 total cache), the minify file generates an error and doesn’t work correctly.

    Please, can you fix this ?

    Thanks

    Andrea

    P.s.: I found this error on bbpress and buddypress wordpress plugins.

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Moderator

    @danbp

    Thank you for reporting this !
    i opened a ticket
    https://buddypress.trac.wordpress.org/ticket/5895#ticket


    shanebp
    Moderator

    @shanebp

    @agengineering
    > the minify file generates an error

    Please share the exact error.


    Andrea Grillo
    Participant

    @agengineering

    @shanebp

    the semantics of the media query is wrong. In fact, a media query must be written in this way:

     
    @media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
       .my_selector {
            -webkit-text-size-adjust: none;
       } 
    } 
    

    You can not write a media query without putting a rule selector.
    Normally this is not problems because it is located at the end of the file. Conversely, when I create a file with w3 total cache minify, the presence of this rule stops me running subsequent rules causing an error in the layout of the site.

    Your rule haven’t any css selector:

    
    @media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    -webkit-text-size-adjust: none;
    }
    

    I hope I was clear.

    See here: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries#device-aspect-ratio

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with w3 Total Cache’ is closed to new replies.
Skip to toolbar