Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <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>
        <span role="text">
          <abbr title="Ils et elles" aria-hidden="true">Ils·elles</abbr><span class="mask">
          Ils et elles</span>
          sont
          <abbr title="enchantées" aria-hidden="true">enchanté·e·s</abbr><span class="mask">
          enchantées</span>.
        </span>
      </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>
              
            
!

CSS

              
                .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;
}
              
            
!

JS

              
                $('[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

Console