Re: [css3-background] New use case for background-position-x (&y!)

On Wed, Nov 10, 2010 at 3:51 PM, Lee Kowalkowski
<lee.kowalkowski@googlemail.com> wrote:
> On 10 November 2010 23:23, Brad Kemper <brad.kemper@gmail.com> wrote:
>> On Nov 10, 2010, at 8:35 AM, "Markus Ernst" <derernst@gmx.ch> wrote:
>>> I do not know whether there are explicit use cases for this, but the
>>> background-position property as a shorthand is not really intuitive; I
>>> myself have to check a manual every time I need this property, because I
>>> always forget the order of the values. So, for some authors, separate
>>> properties would make a little thing a little bit easier.
>>
>> I'm more sympathetic to this line of thought, as I also have to pause to
>> think which dimension comes first (it's the opposite of when you specify two
>> length for, say, margin). However, I think this has already improved a lot
>> in the latest spec, because now you can be very explicit about the edge to
>> measure from. For instance:
>>
>> background-position: left 10px top 15px;
>
> But unless I misread the specification, you still have to remember the
> order to do this.  I mean, is "top 15px left 10px" allowed?

Yes.  That's the whole reason for tagging it with a side keyword -
there's no need for a specific order, because it's unambiguous.

~TJ

Received on Wednesday, 10 November 2010 23:53:00 UTC