Resolve "Getting CSS properties defined in em (etc.) in px rounds toward 0, delivering 1 too few pixels"
requested to merge 1088-getting-css-properties-defined-in-em-etc-in-px-rounds-toward-0-delivering-1-too-few-pixels into gtk-3-24
Otherwise, requesting a min size in em where the equivalent in px had a fractional part would lead to the gadget getting allocated 1 too few px. You could see this in the CSS property vs. allocation in the Inspector.
Note that margin/border/padding are left alone: the rationale is that we do as browsers do, and Benjamin said we already do that for those, whereas his tests on min-(width|height) showed otherwise. My subsequent analysis indicated it to be far less clear-cut than that, but he remains unconvinced that we should ceil() all the things! So just do these ones.
Closes #1088 (closed)
This is equally applicable to master
, where it just needs to go into gtksizerequest.c
instead.