mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.22k stars 22.5k forks source link

Clarify `appearance: none;` behavior #36893

Open jeff-hykin opened 1 day ago

jeff-hykin commented 1 day ago

Description

Clarify the standardized behavior of appearance: none;

Motivation

Some people misinterpret the original wording as behavior similar to display: none; or visibility: hidden; when in reality it is more like a css-reset.

Here is some supporting evidence of old defintion causing confusion

Screenshot_2024-11-20-22-25-29-40

Additional details

Quote from the spec

The element is rendered following the usual rules of CSS. Replaced elements other than widgets are not affected by this and remain replaced elements. Widgets must not have their native appearance, and instead must have their primitive appearance. See § 7.2.2 Effects of appearance on Decorative Aspects of Elements and § 7.2.3 Effects of appearance on Semantic Aspects of Elements for details.

github-actions[bot] commented 1 day ago

Preview URLs

(comment last updated: 2024-11-22 14:53:46)