<!DOCTYPE html>
<html class="reftest-wait">
  <head>
    <title>Check for correctly updating :placeholder-shown matching on type change</title>
    <link rel="match" href="selector-placeholder-shown-type-change-003-ref.html">
    <link rel="help" href="https://drafts.csswg.org/selectors-4/#placeholder">
    <style>
      span { color: green; }
      :placeholder-shown + span { color: red }
    </style>
    <script>
      onload = function() {
        // setTimeout because in some browsers apparently a tople