You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browsers consistently treat these two inputs differently: the text input stays at 100px wide, overflowing its flexbox parent, while the date input compresses to the available space and doesn't overflow.
In discussion with implementors, this is due to differences in internal implementations and default UA styles:
the text input contains a (100px wide) internal box to actually receive the textual input, so the input's automatic minimum size is 100px
the date input has a similar internal structure, but also has overflow:hidden set directly on it by the UA stylesheet (rather than on one of the internal bits, as for the text input), so its automatic minimum size is 0 due to it being a scrollable box.
Other input types have a similar split in behavior depending on how they're implemented internally. This is pretty confusing for authors! There's nothing about the elements that suggests they should have such divergent behavior, and it means authors can't predict how their input elements will work, even when they appear to be very similar types.
This divergent internal structure also probably contributes to our confusion about how compressible elements work in the Sizing spec...
The text was updated successfully, but these errors were encountered:
See the following testcase:
Browsers consistently treat these two inputs differently: the text input stays at 100px wide, overflowing its flexbox parent, while the date input compresses to the available space and doesn't overflow.
In discussion with implementors, this is due to differences in internal implementations and default UA styles:
Other input types have a similar split in behavior depending on how they're implemented internally. This is pretty confusing for authors! There's nothing about the elements that suggests they should have such divergent behavior, and it means authors can't predict how their input elements will work, even when they appear to be very similar types.
This divergent internal structure also probably contributes to our confusion about how compressible elements work in the Sizing spec...
The text was updated successfully, but these errors were encountered: