<!DOCTYPE html>
<meta name="timeout" content="long" />
<title>:has() invalidation with :buffering & :stalled pseudo-classes</title>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://drafts.csswg.org/selectors/#relational">
<link rel="help" href="https://drafts.csswg.org/selectors/#media-loading-state">

<style>
#subject:has(video:buffering) {
    background-color: blue;
}
#subject:has(video:stalled) {
    border-color: green;
}
</style>

<div id="subject">
