Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-pseudo/first-line-change-inline-color.html
<!DOCTYPE html> <html class="reftest-wait"> <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo"> <link rel="match" href="first-line-change-inline-color-ref.html"> <style> #block { color: green; } #block::first-line { color: blue; } .green { color: green; } </style> <div id="block"> <div> <p>Blue <span id="target">This text should be green.</span> Blue</p> </div> </div> <script> requestAnimationFrame(() => { requestAnimationFrame(() => { target.className = 'green'; document.documentElement.removeAttribute('class'); }); }); </script> </html>
/css/css-pseudo/first-line-change-inline-color-ref.html
<!DOCTYPE html> <p style="color: blue">Blue <span style="color: green">This text should be green.</span> Blue</p>