Make WordPress Core


Ignore:
Timestamp:
01/13/2026 10:07:57 PM (2 months ago)
Author:
peterwilsoncc
Message:

General: Use legacy content properties for CSS icons.

In modern browsers the CSS content property provides alt text support for assistive technology in the form display / alt text. This introduces support for legacy browsers that do not support the new syntax.

CSS content properties take advantage of the CSS cascade and browsers ignoring values they don't understand by adding duplicate content properties in the form:

content: display;
content: display / alt text;

Modern browsers will use the second property, legacy browsers will use the first.

Follow-up to [60885] for #63603.

Props acmoifr, joedolson, jorbin, mydesign78, ov3rfly, peterwilsoncc, presskopp, sabernhardt, siliconforks, swissspidy, threadi, wildworks, wolf45.
Fixes #64350.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/revisions.css

    r60885 r61480  
    494494    left: 2px;
    495495    color: #50575e;
     496    content: "\f229";
    496497    content: "\f229" / '';
    497498    font: normal 18px/1 dashicons;
     
    512513
    513514.wp-slider .ui-slider-handle.from-handle:before {
     515    content: "\f139";
    514516    content: "\f139" / '';
    515517}
    516518
    517519.wp-slider .ui-slider-handle.to-handle:before {
     520    content: "\f141";
    518521    content: "\f141" / '';
    519522}
    520523
    521524.rtl .wp-slider .ui-slider-handle.from-handle:before {
     525    content: "\f141";
    522526    content: "\f141" / '';
    523527}
    524528
    525529.rtl .wp-slider .ui-slider-handle.to-handle:before {
     530    content: "\f139";
    526531    content: "\f139" / '';
    527532    right: -1px;
Note: See TracChangeset for help on using the changeset viewer.