The clip CSS property –added in new version (1.8.0)– is deprecated

Home Forums Quform WordPress The clip CSS property –added in new version (1.8.0)– is deprecated

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20704
    diegocanal
    Participant

    Hi Ally,

    The clip CSS property is deprecated, clip-path should be used instead, although it is still tagged as experimental (clip-path) not being compatible with all browsers. I think it would be better to use a workaround.

    Did you add it to fix the missing for attribute in some <label> elements? If so I provided you with a possible solution in this thread.

    I found the mentioned clip property in /css/styles.css:

    
    /* For screen readers */
    .iphorm-screen-reader-text {
    	clip: rect(1px, 1px, 1px, 1px);
    	height: 1px;
    	overflow: hidden;
    	position: absolute !important;
    	width: 1px;
    	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
    	min-height: 0 !important; /* Reset Quform style */
    }

    For reference:
    MDN/clip
    MDN/clip-path

    Regards
    Diego

    • This topic was modified 8 years, 6 months ago by diegocanal.
    #20707
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #20709
    diegocanal
    Participant

    Hi Ally,

    Fair enough, thank you for your thorough explanation.

    Regards
    Diego

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy