Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/invalidation/any-link-attribute-removal.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS test: Handling of dynamic changes to :any-link selectors</title> <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"> <link rel="match" href="any-link-attribute-removal-ref.html"> <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo"> <style> span { color: green; } :any-link + span { color: red; } </style> <body onload="window.oldColor = getComputedStyle(document.querySelector('span')).color; document.querySelector('a').removeAttribute('href');"> <a href=""></a><span>This should be green</span> </body>
/css/selectors/invalidation/any-link-attribute-removal-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS test reference</title> <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"> <style> span { color: green; } </style> <body> <a></a><span>This should be green</span> </body>