CSS contain Property Demo - Online Layout & Paint Isolation
Toggle contain: strict, content, paint, layout and see how it affects rendering. Understand isolation for faster pages.
UD5 Toolkit
appearance Property Demo
Compare native browser styles with appearance: none across form elements. See exactly what gets reset and learn how to build custom styles on top.
When you remove the native dropdown arrow with appearance: none, add a custom SVG background arrow to maintain usability.
appearance: nonebackground-image: url(...)background-positionpadding-right (space for arrow)
/* Reset a single select element */
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
/* Add custom arrow */
background-image: url("arrow.svg");
background-repeat: no-repeat;
background-position: right 0.75rem center;
padding-right: 2.25rem;
}
/* Reset all form elements */
input, select, textarea, button,
progress, meter {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border: 1px solid #ccc;
border-radius: 0.25rem;
padding: 0.5rem 0.75rem;
font: inherit;
}
/* Checkbox/Radio need custom indicators */
input[type="checkbox"],
input[type="radio"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
border: 2px solid #666;
cursor: pointer;
}
input[type="checkbox"]:checked {
background: #6c5ce7;
border-color: #6c5ce7;
}
input[type="radio"] {
border-radius: 50%;
}
appearance: none
| Browser | Standard appearance |
-webkit-appearance |
-moz-appearance |
Notes |
|---|---|---|---|---|
| Chrome 84+ | Full | Supported | N/A | Both standard and -webkit- work |
| Firefox 80+ | Full | N/A | Supported | Use -moz- for older versions |
| Safari 15.4+ | Full | Required | N/A | Always include -webkit- for Safari |
| Edge 84+ | Full | Supported | N/A | Chromium-based, same as Chrome |
| iOS Safari 15.4+ | Partial | Required | N/A | Always include -webkit- prefix |
appearance: none and -webkit-appearance: none for maximum compatibility. Add -moz-appearance: none for older Firefox versions.
appearance property controls whether an element uses platform-native styling (browser default) or can be fully customized with CSS. It was originally introduced as a way to make elements look like native UI widgets (e.g., appearance: button makes a <div> look like a button). Today, its most common use is appearance: none to strip away all native browser styling, giving developers a clean slate for custom designs.
appearance: none ensures a uniform starting point.<select>. appearance: none removes these quirks.appearance: none, the native indicator is removed, but no replacement is provided. The input still exists (it's clickable and maintains its checked state), but visually there's nothing there. You must manually style the :checked state using CSS pseudo-elements or background images to create custom indicators. See the Checkbox/Radio Fix code example above.
appearance: none, the native dropdown arrow disappears. To add a custom arrow:
background-image (data URI).background-position: right 0.75rem center.padding-right so the text doesn't overlap the arrow.background-repeat: no-repeat.See the Best Practice example above for a working demonstration with complete CSS.
appearance: none specifically targets platform-native UI styling (the operating system's rendering of form controls). all: unset is much more aggressive—it resets every CSS property (color, font, margin, padding, border, etc.) to its inherited or initial value. Use appearance: none when you want to keep your existing styles but remove browser-specific chrome. Use all: unset (rarely) when you need a complete CSS reset on a specific element.
::-webkit-slider-runnable-track and ::-webkit-slider-thumb.::-moz-range-track and ::-moz-range-thumb.Apply appearance: none to the <input type="range"> itself, then style the pseudo-elements separately. Note that you'll need vendor-prefixed pseudo-elements for each browser engine.
appearance: none, always:
:focus-visible outline or ring.The underlying HTML semantics remain intact, so screen readers still recognize checkboxes, buttons, and selects correctly—even with custom styling.
appearance property accepts values like button, textfield, menulist-button, checkbox, radio, push-button, and more. For example, applying appearance: button to a <div> makes it render with native button styling. However, this usage is less common and somewhat inconsistent across browsers. The primary practical use today is appearance: none for resetting styles. If you need a button, just use a <button> element—it's semantically correct and accessible by default.
Toggle contain: strict, content, paint, layout and see how it affects rendering. Understand isolation for faster pages.
Manipulate CSS values as typed objects using attributeStyleMap. Convert between CSSUnitValue, CSSMathSum, etc. Futuristic CSS‑in‑JS.
A minimalist countdown timer that overlays on your screen while recording tutorials or demos. Perfect for keeping videos concise without editing.
Choose where page breaks should occur for printing. Get the break‑before, break‑after, and break‑inside CSS.
Create a pure CSS scroll progress indicator using animation‑timeline: scroll(). No JavaScript. Copy the complete code.
Hover over tiles to see every CSS cursor value in action. Quick visual reference for choosing the right UI feedback.
Paste your CSS and see warnings for properties that have limited browser support. Links to CanIUse. Modernize safely.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
Drop files onto a zone and see a preview with name, size, and type. Copy the JavaScript pattern for your site.
Load any variable font from Google Fonts or local file and play with weight, width, slant, and custom axes. Download CSS.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
Browse the fonts installed on your system and type a custom phrase to see how it looks. Uses Local Font Access API where available.
See every HTML input type in one page. Check browser support and styling. Copy sample markup. Quick frontend reference.
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
Limit browser gestures on an element: pan‑x, pinch‑zoom, manipulation. Draw on a canvas to test. Mobile dev helper.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Test the Fullscreen API: request fullscreen on a colored div, detect changes, and copy the JavaScript boilerplate.
Style underlines, overlines, and strike-throughs with colors, wavy styles, and thickness. Modern CSS text‑decoration.
Build a 3D rotating cube using pure CSS. Set dimensions, colors, and animation speed. Copy the HTML and CSS.
Design a button or card that glows on hover. Adjust shadow color, spread, and transition. Copy the CSS. Rich UI.
Create a realistic letterpress (debossed) text effect using CSS text‑shadow and background. Adjust depth and light direction. Copy code.
Generate a subtle noise/grain texture as a CSS background pattern. Adjust opacity and size. For that film look.
Create a customizable checkerboard or grid background using pure CSS gradients. Adjust cell size and colors. Copy the code.
Create a pure CSS countdown timer with a flipping number effect. Adjust duration and style. No JavaScript needed for display.
Create a rainbow gradient text animation using pure CSS. Customize speed and colors. Copy the code for your website.
Upload a small image and generate the CSS code for a custom cursor. Test it live on the page. Tiny but useful.
Find safe mixing ratios for the classic elephant toothpaste demonstration. Volume adjustments for different container sizes.
A complete, searchable list of all 140+ named HTML/CSS colors with their hex codes and color previews. Click to copy code. Essential web reference.
Visually experiment with Flexbox container and item properties. See the layout update in real time and copy the CSS. Learn by doing, fully interactive.
Design layered box shadows interactively and get the CSS code in real time. Adjust offset, blur, spread, and color. Essential tool for UI designers.