Make WordPress Core


Ignore:
Timestamp:
02/17/2025 05:47:09 PM (11 months ago)
Author:
joedolson
Message:

Accessibility: Globally update .screen-reader-text class.

Remove references to the obsolete style property clip: rect(1px, 1px, 1px, 1px); and replace or adapt to use clip-path: inset(50%);. Update associated :focus styles as appropriate. Remove prefixed instances of -webkit-clip-path.

Props afercia, hbhalodia, audrasjb, joedolson, sabernhardt.
Fixes #62238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php

    r55420 r59832  
    124124    .site-description {
    125125        position: absolute;
    126         clip: rect(1px 1px 1px 1px); /* IE7 */
    127         clip: rect(1px, 1px, 1px, 1px);
     126        clip-path: inset(50%);
    128127    }
    129128        <?php
     
    186185    #headimg h2 {
    187186        position: absolute !important;
    188         clip: rect(1px 1px 1px 1px); /* IE7 */
    189         clip: rect(1px, 1px, 1px, 1px);
     187        clip-path: inset(50%);
    190188    }
    191189    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.