Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <p>
	In Chrome 60+(does not occur in Chrome 59.0.3071.15), certain
	<a href="https://emojipedia.org/emoji-zwj-sequences/">ZWJ skin tone unicode emojis</a>
	with a CSS <code>width</code> property that would cause the individual characters to wrap
	will split into their individual unicode characters instead of becoming one single emoji.
	Here is an image of demo in case you are not on Chrome 60+
	or in a future version where this is already fixed,
	<a href="https://i.imgur.com/AmcRvrq.png">
		Windows 10
	</a>,
	<a href="https://i.imgur.com/NAmooZg.png">
		macOS 10.12.6
	</a>
</p>

<p>
	I can only reproduce with the handshake and wrestlers emoji.
	base emoji + <a href="https://emojipedia.org/modifiers/">skin tone modifier</a>
</p>

<ul>
	<li>
		Handshake: 1F91D + (1F3FB through 1F3FF)
	</li>
	<li>
		Wresters: 1F93C + (1F3FB through 1F3FF)
	</li>
</ul>


<hr />

<h4>
	No <code>width</code> property applied (pass)
</h4>

<div>
	<div>
		šŸ¤šŸæ
	</div>
	
	<div>
		Without ZWJ character
	</div>
	<div class="individual-character-display-box">
		<span>šŸ¤</span>
		<span>šŸæ</span>
	</div>
</div>

<br>

<div>
	<div>
		šŸ¤¼šŸæ
	</div>
	
	<div>
		Without ZWJ character
	</div>
	<div class="individual-character-display-box">
		<span>šŸ¤¼</span>
		<span>šŸæ</span>
	</div>
</div>





<hr />


<h4>
	<code>width</code> constrained without enough space for both individual characters (fail)
</h4>

<p class="constrain-me">
	šŸ¤šŸæ
</p>

<p class="constrain-me">
	šŸ¤¼šŸæ
</p>

<h4>
	<code>width</code> constrained but has enough space for both individual characters (pass)
</h4>

<p class="constrain-me-greater">
	šŸ¤šŸæ
</p>

<p class="constrain-me-greater">
	šŸ¤¼šŸæ
</p>
              
            
!

CSS

              
                body {
	font-family:  sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.individual-character-display-box {
	display: inline-flex;
	background-color: rgba(0, 0, 150, 0.2);
}

.constrain-me {
	width: 30px;
	background-color: rgba(150, 0, 0, 0.2);
}

.constrain-me-greater {
	width: 50px;
	background-color: rgba(0, 150, 0, 0.2);
}
              
            
!

JS

              
                
              
            
!
999px

Console