[Bug 29200] Specifying top and bottom margins in percentage should relate to height, not width, of parent

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29200

--- Comment #2 from teo8976@gmail.com ---
At the very least a way must be provided to express percentages of height.
What is completely unacceptable is that a height (or vertical margin) cannot be
expressed, in ANY way, as a percentage of a height.

Actually, this is only a tiny part of a huge problem in the whole CSS
specification, that is that EVERYTHING vertical-related is a nightmare.

I understand that CSS (and the box model) was conceived with content flowing in
a vertical page with a given width but indefinite height in mind, which is the
most common scenario, but by 2015 (if not fifteen years ago already) we should
have realized that it is not the *only* scenario.

Another example of it is how ridiculously difficult it is to simply center
something vertically, actually impossible in a general and elegant way not
involving horrible hacks and/or changing the markup and/or only working under
given assumptions - where the horizontal counterpart is always trivial.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 24 October 2015 16:29:52 UTC