====== Make Replaced Elements Always Be Flexbox Items ====== ---- dataentry ---- Spec_tags : css3-flexbox Owner_tags : tabatkins Status_tags : Closed Added_dt : 2012-05-16 Action : Pick proposal A, B, C or D Issue_urls : http://lists.w3.org/Archives/Public/www-style/2012May/0558.html Proposal_urls : http://lists.w3.org/Archives/Public/www-style/2012May/0558.html ---- === Background === Flexbox promotes flex container child elements of all display types except 'inline' into being flex items. However, one common point of confusion for users of flexbox was why e.g. buttons do not get turned into flex items by default. So the Flexbox spec currently has some magic to make inline replaced elements into flex items. People seem happy with this. The question here is what kind of magic should be used to do this. A complication is that replaced elements such as and are display:inline, and if the resource does not load, are treated in some UAs as regular inline elements containing the alt text. (E.g. Firefox does this, as the HTML5 spec seems to require.) So a given element could be either an inline replaced element or an inline non-replaced element depending on resource availability. === Problem Statement === How should images and buttons be promoted to flex items? === Proposal(s) === All proposals except C ensure that flex-itemness (and thus the box tree structure) is deterministic regardless of resource loading. == Proposal A == * Make the following elements always become flexbox items, regardless of 'display': , , , , , ,