I have a strange behaviour with DIV-Table
Here a jsFiddle with my simplified example. Relevant part of CSS is the following:
.cell { display: table-cell; width:35px; height:12px; font-size:1px; overflow:hidden; line-height:1em; }
Actually, font-size is set to 1px.
In Firefox, if I increase font-size (with inspector for example) until 13px, cells' height decrease instead of increase. Over this threshold, cells' height start to increase to accomodate test strings. height property seems completely ignored.
In Chrome, beahaviour is almost one desired (increasing font-size results in a continuous cells' height increase) but, again, height property seems completely ignored.
If I don't set display: table-cell;, increase of font-size does not affect DIVs' height and eventually too big text is simply hidden thanks to overflow:hidden.
UPDATE:
I just discovered that forcing vertical-align makes Firefox behaviour similar to Chrome one (cells' height remains fixed until text fit inside them). I don't know why, but seems that for Firefox is necessary to force this property.
Anyway, remain the other need: how to avoid that increasing font-size over 13px will results in ignoring cells height, and auto-adjust it?