title: Can you set the details element to display grid?
body: <p>I wanted to create a filter element that can be collapsed using the <code>&lt;details&gt;</code> element as it comes out of the box with an <code>open/close</code> functionality. </p>
  
  <p>However when it came to styling the fields inside, I wanted to use grid and it seems like <code>&lt;details&gt;</code> can't be set to <code>display: grid</code>? </p>
  
  <p>Has anyone come across this behavior? </p>
  
  <p>Your input is much appreciated!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>details {
    display: grid;
    grid-template-columns: 100px 100px;
  }
  
  input {
    width: 100%;
  }
  
  label {
    display: block;
  }
  
  label:first-of-type {
    color: red;
    grid-column: 1;
  }
  
  label:last-of-type {
    color: blue;
    grid-column: 2;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form&gt;
    &lt;details open&gt;
      &lt;summary&gt;Filter&lt;/summary&gt;
      &lt;label&gt;
          I should be on the left
          &lt;input type="text"&gt;
        &lt;/label&gt;
      &lt;label&gt;
          I should be on the right
          &lt;input type="text"&gt;
        &lt;/label&gt;
    &lt;/details&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://codepen.io/sammiepls/pen/OoxKZb" rel="nofollow noreferrer">Codepen here!</a></p>