<!doctype html>
<head>
  <title>prefers-color-scheme inside an SVG image</title>
  <link rel="help" href="https://www.w3.org/TR/mediaqueries-5/#descdef-media-prefers-color-scheme">
</head>
<style>
  div {
    background-color: blue;
    height: 100px;
    width: 100px;
  }
  @media (prefers-color-scheme: dark) {
    div {
      background-color: green;
    }
  }
</style>
<p>There should be green square below when the preferred color-scheme is dark, and blue otherwise.</p>
<div></div>
