Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-backgrounds/background-clip/clip-text-inline.html
<!DOCTYPE html> <title>background-clip:text on inline elements</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text"> <link rel="match" href="clip-text-inline-ref.html"> <style> body { font-size: 40px; } .text-clip { background: blue; background-clip: text; color: rgba(255,0,0,0.5); } </style> <!-- Passes if all texts below are purple. --> <!-- The s are to avoid glyph overflows. --> <span class="text-clip"> Text1 </span><span class="text-clip"> Text2 </span> <br> <span class="text-clip"> Text3 </span><span class="text-clip"> Text4 </span>
/css/css-backgrounds/background-clip/clip-text-inline-ref.html
<!DOCTYPE html> <title>background-clip:text on inline elements (reference)</title> <style> body { font-size: 40px; } .text-clip { background: blue; background-clip: text; color: rgba(255,0,0,0.5); } </style> <!-- Passes if all texts below are purple. --> <div class="text-clip"> Text1 Text2 </div> <div class="text-clip"> Text3 Text4 </div>