EDIT: I emphatically do not want to rely on fixed sizes for anything.
I have an image that I want to display inline with text. I want the image to
a) be square, and
b) be as tall as the text.
Imagine that a CSS unit called "H" exists, which is equal to the height of a line in the much same way that "ex" is equal to the height of an "x". I want to be able to write code like this:
img.myclass {
width: 1H;
height: 1H;
}
It appears that no such unit actually exists. Am I right?
If there is no such unit (precicely stated, I want the distance from the baseline on one line to the baseline on the next line) then how to I accomplish my goal of line-filling square images, without Javascript?