I am trying to resize an image to be the width of its parent div; normally width: 100%;
works fine, but when the parent has display: box;
the img is not resized. Giving the child image box-flex: 1
has no effect.
<div style="display: -webkit-box; -webkit-box-pack: center; width: 100%;">
<img src="foo.jpg" style="-webkit-box-flex: 1;" />
</div>