How to crop text when the width of element is dynamic?
It’s possible to crop text when width of element is fixed:
.my-class {
width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
But how to do it when width is dynamic?
Real example – header of application with the title floating at the left and the toolbar floating at the right:

The title should take all free place but not more:

How to crop text in such dynamic title?
Code to play live http://cssdeck.com/labs/fbe2t2qo/0
As it turned out it’s actually possible to do, changes are:
HTML
CSS
Code http://cssdeck.com/labs/na24g9nf/0
P.S.
It’s not my answer, it was answered by this guy http://www.sql.ru/forum/memberinfo.aspx?mid=114453 in this thread http://www.sql.ru/forum/actualthread.aspx?tid=979934