I disagree. We are inherently used to 2D coordinate systems being X, then Y.
I would instead have made the directional properties go “left, top, right, bottom” instead.
I disagree. We are inherently used to 2D coordinate systems being X, then Y.
I would instead have made the directional properties go “left, top, right, bottom” instead.
• left, right, up, down
• North, South, East, West
• clockwise from the top
• anticlockwise from positive x
• +X, +Y, -X, -Y
The list goes on. Consistency is the most important thing.
I'd rather see something like named parameters, e.g.:
margin: top(1rem) left(2rem) right(2rem) bottom(1rem);
margin: vertical(1rem) horizontal(2rem);
margin: all(1rem);
Or some such – I dunno I'm no language designer.If you came from print publishing, and assume that the browser handles the gutter spacing with defaults then it might even be argued that the right margin should come next!
It's just something you have to learn, none of the options seem more logical to me.
Note I first wrote HTML using pico on a Sun workstation in ~1995; developing with the developments in web development probably causes one to develop strangely. Or, in other words, it's hard to take a fresh view when you've had to deal with IE5.
I agree that I'm more familiar with left being first but then should it be LRTB or LTRB. LRTB is common to say. But many APIs take x,y first which would arguably be LT.
Basically I think you could justify almost any order
I once wasted a whole afternoon looking for a bug until I realized that atan2 takes y first, then x.