css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <table lang="fr">
  <caption class="mask">Comparatif des méthodes pour abrévier de façon inclusive</caption>
  <thead>
    <tr>
      <th scope="col">Exemple</th>
      <th scope="col">Méthode</th>
      <th scope="col">Langage non-genré</th>
      <th scope="col">Sens typographique</th>
      <th scope="col">Signe insécable</th>
      <th scope="col">Lisibilité</th>
      <th scope="col">Accessibilité</th>
      <th scope="col">Compréhension</th>
      <th scope="col">Mise en œuvre</th>
      <th scope="col">Portée</th>
      <th scope="col">Sensibilisation</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Elles sont enchantées.</td>
      <th scope="row">Féminin</th>
      <td class="red">Non</td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="orange">N. a.</td>
      <td class="red">Mauvaise</td>
    </tr>
    <tr>
      <td>Ils sont enchantés.</td>
      <th scope="row">Masculin</th>
      <td class="red">Non</td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="orange">N. a.</td>
      <td class="red">Mauvaise</td>
    </tr>
    <tr>
      <td>Ils/elles sont enchanté/e/s.</td>
      <th scope="row">Barre oblique</th>
      <td class="green">Oui</td>
      <td class="red">Opposition<span class="mask"> (et donc inadapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils-elles sont enchanté-e-s.</td>
      <th scope="row">Trait d’union</th>
      <td class="green">Oui</td>
      <td class="green">Union<span class="mask"> (et donc adapté)</span></td>
      <td class="red">Non</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils.elles sont enchanté.e.s.</td>
      <th scope="row">Point</th>
      <td class="green">Oui</td>
      <td class="red">Séparation<span class="mask"> (et donc inadapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils’elles sont enchanté’e’s.</td>
      <th scope="row">Apostrophe</th>
      <td class="green">Oui</td>
      <td class="green">Élision<span class="mask"> (et donc adapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils·elles sont enchanté·e·s.</td>
      <th scope="row">Point médian</th>
      <td class="green">Oui</td>
      <td class="green">Neutre<span class="mask"> (et donc adapté)</span></td>
      <td class="green">Oui</td>
      <td class="orange">Moyenne</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="orange">Moyenne</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>
        <abbr title="Ils et elles">Ils·elles</abbr>
        sont
        <abbr title="enchantées">enchanté·e·s</abbr>.
      </td>
      <th scope="row">Point médian et <abbr>H.T.M.L.</abbr></th>
      <td class="green">Oui</td>
      <td class="green">Neutre<span class="mask"> (et donc adapté)</span></td>
      <td class="green">Oui</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne<br /><small>Ceci reste un test, remontez-moi les soucis éventuels.</small></td>
      <td class="green">Bonne</td>
      <td class="red">Difficile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils•elles sont enchanté•e•s.</td>
      <th scope="row">Puce</th>
      <td class="green">Oui</td>
      <td class="red">Structuration<span class="mask"> (et donc inadapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils⋅elles sont enchanté⋅e⋅s.</td>
      <th scope="row">Opérateur point</th>
      <td class="green">Oui</td>
      <td class="red">Opérateur<span class="mask"> (et donc inadapté)</span></td>
      <td class="green">Oui</td>
      <td class="orange">Moyenne</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="orange">Difficile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils(elles) sont enchanté(e)s.</td>
      <th scope="row">Parenthèses</th>
      <td class="green">Oui</td>
      <td class="orange">Isolation (sens commun)</td>
      <td class="green">Oui</td>
      <td class="green">Bonne</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="orange">N.a.</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>IlsELLES sont enchantéEs.</td>
      <th scope="row">Capitales</th>
      <td class="green">Oui</td>
      <td class="red">Emphase<span class="mask"> (et donc inadapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Ils|Elles sont enchanté|e|s.</td>
      <th scope="row">Barre verticale</th>
      <td class="green">Oui</td>
      <td class="green">Choix<span class="mask"> (et donc adapté)</span></td>
      <td class="green">Oui</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="red">Court terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Iels sont enchantēs.</td>
      <th scope="row">Enrichissement de la langue</th>
      <td class="green">Oui</td>
      <td class="green">Nouveau<span class="mask"> (et donc adapté)</span></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="red">Mauvaise</td>
      <td class="red">Mauvaise</td>
      <td class="orange">Moyenne</td>
      <td class="green">Long terme</td>
      <td class="green">Bonne</td>
    </tr>
    <tr>
      <td>Tout le monde est enchanté.</td>
      <th scope="row">Formulation</th>
      <td class="green">Oui</td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Facile</td>
      <td class="orange">N. a.</td>
      <td class="orange">Moyenne</td>
    </tr>
    <tr>
      <td><span lang="en">They are delighted.</span></td>
      <th scope="row">Langue</th>
      <td class="green">Oui</td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="orange">Plus compliquée</td>
      <td class="green">Facile</td>
      <td class="orange">N. a.</td>
      <td class="red">Mauvaise</td>
    </tr>
    <tr>
      <td>
        <span class="f">Elles</span><span class="h" aria-hidden="true">Ils</span> sont
        <span class="f">enchantées</span><span class="h" aria-hidden="true">enchantés</span>.
        <span data-html="[button class='fh']Inverser les genres[/button]"></span>
      </td>
      <th scope="row">Option</th>
      <td class="green">Oui</td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="orange"><abbr title="Non applicable">N. a.</abbr></td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="green">Bonne</td>
      <td class="red">Difficile</td>
      <td class="red">Court terme</td>
      <td class="orange">Moyenne</td>
    </tr>
  </tbody>
</table>
            
          
!
            
              .f {
  + .h {
    display: none;
  }
  
  &[aria-hidden=true] {
    display: none;

    + .h {
      display: inline;  
    }
  }
}

abbr[title] {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  background-color: transparentize(black, 0.9);
  text-align: left;
  padding: (10rem / 16) (5rem / 16);
  border: 1px solid #fff;
}

tbody th {
  font-weight: normal;
}

tbody td:first-child {
  white-space: nowrap;
}

button {
  display: block;
  margin-top: (10rem / 16);
}

body {
  margin: (20rem / 16);
  line-height: (20rem / 16);
}

ol,
table {
  margin: (20rem / 16) 0;
}

.red {
  background-color: transparentize(red, 0.75);
}

.orange {
  background-color: transparentize(orange, 0.75);
}

.green {
  background-color: transparentize(green, 0.75);
}

.mask {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
          clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
            
          
!
            
              $('[data-html]').each(function () {
  $(this).html($(this).attr('data-html').replace(/\[/g, '<').replace(/\]/g, '>').replace(/'/g, '"'));
});

$(document).on('click', '.fh', function(){
  var f = $('.f'),
      h = $('.h');
  
  if(f.filter(':first').attr('aria-hidden') != 'true') {
    f.attr('aria-hidden', 'true');
    h.attr('aria-hidden', 'false');
  } else {
    f.attr('aria-hidden', 'false');
    h.attr('aria-hidden', 'true');
  }
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console