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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.


              <h1>WCAG 2.1 SC 1.4.10 edge case?</h1>

<p>The content in the container below starts to grow horizontally beyond its outer container as soon as you zoom. This causes horizontal and vertical scrollbars. However, at exactly 320 CSS px viewport width, the CSS is changed to make everything just as wide as the viewport, removing the bidirectional scrollbars. This nominally passes WCAG 2.1 SC 1.4.10...but is arguably a completely broken loophole.</p>

<div id="applicability">
  <p id="not320">The viewport is not exactly 320 CSS px - SC 1.4.10 does <strong>not</strong> apply, so content is free to have both horizontal and vertical scrollbars.</p>
<p id="exactly320">The viewport is at exactly 320 CSS px - this is the only time when SC 1.4.10 applies, and any horizontal and vertical scrollbars are a failure.</p>
<div id="container">
  <p>Break me off, if you bad, show me who's the boss. Make it like your birthday everyday. They say, be afraid you're not like the others, futuristic lover. Never planned that one day I'd be losing you. It's not even a holiday, nothing to celebrate. I know you get me so I let my walls come down, down. We're living the life. We're doing it right.</p>

<p>I'll take your bad days with your good. 'Cause she's a little bit of Yoko, And she's a little bit of 'Oh no'. Yeah, we maxed our credit cards and got kicked out of the bar. But down to earth. It's always been inside of you, you, you. Had the world in the palm of your hands. So make a wish, I'll make it like your birthday everyday. There's a stranger in my bed, there's a pounding in my head. Do you ever feel like a plastic bag. So you wanna play with magic.</p>

<p>But in another life I would be your girl. Don't let the greatness get you down, oh, oh yeah. You’re gonna hear me roar. We go deeper and harder than ever before. California girls we're unforgettable. We'd make out in your Mustang to Radiohead. She ride me like a roller coaster. Boom, boom, boom.</p>

<p>Take me, ta-ta-take me. I can't ignore this war. I finally found you my missing puzzle piece, I'm complete. Oh, no. You make me feel like I'm livin' a teenage dream, the way you turn me on 'Cause I am a champion and you’re gonna hear me roar louder, louder than a lion. Boy all this time was worth the waiting. But down to earth. So you could open one that leads you to the perfect road. Do you know that there's still a chance for you 'Cause there's a spark in you? Oh, no.</p>
<p><small>Text taken from <a href="">Katy Perry Ipsum</a>.</small></p>


              body { font-family: Helvetica, Arial, sans-serif; font-size: 1.25em; }

#container { width: 60vw; height: 60vh; padding: 1em; border: 2px gray solid; overflow: auto; margin: 0 auto; font-size: 1.75em; }
#container p { width: 30em; margin-top: 0; }

#applicability { background: #fee; padding: 1em; margin: 1em 0; border: 1px gray solid; }
#applicability #exactly320 { display: none; }

@media (width: 320px) { 
  body { font-size: 1em; }
  #container { width: 100%; height: auto; margin: 0; padding: 0; border: 0; }
  #container p { width: 100%; margin : 0; }
  #applicability { background: #efe; }
  #applicability #not320 { display: none; }
  #applicability #exactly320 { display: block; }