Open SebastianZ opened 7 years ago
This seems a priori reasonable to me, but we (I?) should probably go through all the form elements and see if that actually works out. Specifically, I am wondering about complex form controls whose sub-components cannot just boil down to CSS styling.
@zcorpan , do you have any insight into this?
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.
Related to this issue, according to https://bugs.chromium.org/p/chromium/issues/detail?id=480891#c24 the usage count for ::before
and ::after
pseudo-elements on <input>
has increased over the last few years to more than 1% of websites.
So there is obviously a need to define this.
Some related discussion already happened in https://lists.w3.org/Archives/Public/www-style/2016Mar/0190.html.
Sebastian
The description of the
none
value of theappearance
property currently says this:It doesn't explicitly state that it turns form controls into non-replaced elements.
Sebastian