cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="container">
  <h1 class="item">Penne with tomato sauce</h1>
  <div class="item content">
    <p>Setting <code>.sponsors</code>, a <code>ul</code>, to <code>display: contents</code>, causes weird issues in accessibility trees.</p>
    <h2>Firefox Nightly, 61</h2>
    <p>UL gets role <code>text leaf</code></p>
    <h2>Safari, with VoiceOver</h2>
    <p><code>ul</code> has role <code>list</code></p>
    <h2>Chrome</h2>
    <p>Accessibility tree shows “Accessibility node not exposed, element is not rendered” for UL.</p>
  </div>
  <div class="item ingredients">
    <h2>You'll need:</h2>
    <ul>
      <li>Canned tomatoes</li>
      <li>Onions</li>
      <li>Garlic</li>
    </ul>
  </div>
  <ul class="sponsors">
    <li>Supermarket 1</li>
    <li>Supermarket 2</li>
  </ul>
</div>
            
          
!
            
              .sponsors {
  display: contents;  
}











/* other things */

* { margin: 0; padding: 0; }

body { font-family: Merriweather, sans-serif; padding: 2em; }

code { font-size: 1em; font-family: Monaco, monospace; border: 1px solid #ccc; background-color: #fff; }

p, ul { margin-bottom: 1em; }

h1 { font-weight: normal; border-top: 5px solid black; }

h2 { margin: 1em 0 .25em; font-size: 1em;} 
h2:first-child { margin-top: 0; }

.container  { 
  background-color: #EFEFFF;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 1em;
}
  .container .item:nth-child(1) {
    grid-column: 1 / 2;
  }
  .container .item:nth-child(2) {
    grid-column: 2 / 4;
  }

.item {
  padding: 1rem;
}

.content {
  background-color: white;
  margin: 1em 0;
}

.sponsors {
}
  .sponsors li {
    list-style: none;
  }
  .sponsors li:nth-child(1) {
    grid-column: 2 / 3;
  }
  .sponsors li:nth-child(2) {
    grid-column: 3 / 4;
  }


            
          
!
999px
Loading ..................

Console