Why Do You Write '-Webkit-Touch-Callout: None' When Applying Css to Ios?

Why Do You Write '-Webkit-Touch-Callout: None' When Applying Css to Ios?

I was writing a css that only applies to iOS.

When I searched, most people used '@support(-webkit-touch-callout:none)' to write css.

Touch callout is a menu that comes out when you press and hold the link on the iPhone.

But I wonder why I have to set it to 'none'.

Even if I wrote '@support(-webkit-touch-callout:inherit)' the css seemed to work well.

What happens if I don't set '@support(-webkit-touch-callout: none)'?

Please tell me anything related to this question.

Thank you.

`

#main {
        min-height: 100vh;
    }
    /* iOS only */
    @supports (-webkit-touch-callout: none) { 
        #main {
            min-height: -webkit-fill-available;
        }
    }

`

1 Answer

if you set -webkit-touch-callout: none than you won't get link preview after a "long tap". so you won't get something like this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.