The text-decoration-skip CSS property sets what parts of an element's content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors.
   
   
  
   Syntax
   
    
     
     
text-decoration-skip: none;
text-decoration-skip: objects;
text-decoration-skip: spaces;
text-decoration-skip: edges;
text-decoration-skip: box-decoration;
text-decoration-skip: objects spaces;
text-decoration-skip: leading-spaces trailing-spaces;
text-decoration-skip: objects edges box-decoration;
text-decoration-skip: inherit;
text-decoration-skip: initial;
text-decoration-skip: revert;
text-decoration-skip: revert-layer;
text-decoration-skip: unset;
     
    
  
  
   Values
   
    
     - 
      none
- 
      Nothing is skipped. Thus, text decoration is drawn for all text content and across atomic inline-level boxes. 
- 
      objects
- 
      The entire margin box of the element is skipped if it is an atomic inline such as an image or inline-block. 
- 
      spaces
- 
      All spacing is skipped: all Unicode white space characters and all word separators, plus any adjacent letter-spacingorword-spacing.
 
- 
      leading-spaces
- 
      The same as spaces, except that only leading spaces are skipped.
 
- 
      trailing-spaces
- 
      The same as spaces, except that only trailing spaces are skipped.
 
- 
      edges
- 
      The start and end of the text decoration is inset slightly (e.g., by half of the line thickness) from the content edge of the decorating box. Thus, adjacent elements receive separate underlines. (This is important in Chinese, where underlining is a form of punctuation.)  
 
- 
      box-decoration
- 
      The text decoration is skipped over the box's margin, border, and padding areas. This only has an effect on decorations imposed by an ancestor; a decorating box never draws over its own box decoration. 
 
  
  
  
   
   
    text-decoration-skip = 
  none  |
  auto  
    
  
  
  
   Skipping edges
   
    HTML
    
     
     <p>Hey, grab a cup of <em>coffee!</em></p>
     
    CSS
    
     
     p {
  margin: 0;
  font-size: 3em;
  text-decoration: underline;
  text-decoration-skip: edges;
}
     
    Result
    
    
    
  
  Specifications
  
  Browser compatibility
  
   
    
     
      
       |  | Desktop | Mobile | 
      
       |  | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | 
     
     
      
       | text-decoration-skip | 57–64Only supports the deprecatedinkvalue. | No | No | No | 44–50Only supports the deprecatedinkvalue. | 12.1Supports onlynone,auto, andobjectsvalues.7Supports onlynone,auto, andobjectsvalues. | 57–64Only supports the deprecatedinkvalue. | 57–64Only supports the deprecatedinkvalue. | No | 43–46Only supports the deprecatedinkvalue. | 12.2Supports onlynone,auto, andobjectsvalues.7Supports onlynone,auto, andobjectsvalues. | 7.0–9.0Only supports the deprecatedinkvalue. |