I have an issue with the shrinking of a flex container with an input inside it.
div {
  border: 2px solid rebeccapurple;
  
  display: inline-flex;
}
input {
  flex: 0 0 0;
  min-width: 0;
  width: auto;
}<div>
  <input placeholder="Type something" value="foo" />
</div>Can anyone explain me why the flex container thinks its content is larger than the input's size?
 
    