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="css-check pass">
  <i class="fas fa-check"></i> CSS Check Pass
</div>

<div class="css-check fail">
  <i class="fas fa-times"></i> CSS Check Fail
</div>

<div class="js-check pass">
  <i class="fas fa-check"></i> JS Check Pass
</div>

<div class="js-check fail">
  <i class="fas fa-times"></i> JS Check Fail
</div>

            
          
!
            
              @supports (background: paint(id)) {
  /* Paint API supported */
  .css-check.pass {
    display: block;
  }
}

@supports not (background: paint(id)) {
  /* Paint API not supported */
  .css-check.fail {
    display: block;
  }
}

/* the rest of this is just for looks */

html, body {
  height: 100%;
}

body {
  display: grid;
  grid-template-columns: repeat(2, 320px);
  align-content: center;
  justify-content: space-evenly;
  margin: 0;
  color: #fff;
  background: linear-gradient(to bottom right, #adb5bd, #f8f9fa);
  font: 2rem/1 'Mukta Mahee', sans-serif;
}

.pass, .fail {
  display: none;
  text-align: center;
  padding: 20px;
  border: 2px solid currentColor;
  background-color: rgba(255, 255, 255, 0.25);
}

.pass {
  color: #2b8a3e;
  background-color: #ebfbee;
}

.fail {
  color: #c92a2a;
  background-color: #ffe3e3;
}

.fas {
  margin-right: 10px;
}

            
          
!
            
              let passEl = document.querySelector('.js-check.pass');
let failEl = document.querySelector('.js-check.fail');

if ('paintWorklet' in CSS) {
  // Paint API supported
  passEl.style.display = 'block';
} else {
  // Paint API not supported
  failEl.style.display = 'block';
}

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

Console