Re: [csswg-drafts] [css-ui-4] Clarify that 'appearance: none' causes an element to not be replaced anymore (#1018)

Form controls aren't really replaced elements, though they share *some* traits with replaced elements. For example, buttons

https://html.spec.whatwg.org/multipage/rendering.html#button-layout

> If the element is absolutely positioned, then for the purpose of the CSS visual formatting model, act as if the element is a replaced element. [CSS]

> For the purpose of the 'normal' keyword of the 'align-self' property, act as if the element is a replaced element.

but it needs to act as a non-replaced element for the purpose of baseline alignment when it's `inline-block`.

Whether those traits are removed by `appearance: none` probably depends on the control. Buttons still have the traits. I haven't had the opportunity yet to research and specify rendering for all HTML widgets, but maybe `progress` or so is different.

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1018#issuecomment-572732507 using your GitHub account

Received on Thursday, 9 January 2020 20:06:11 UTC