W3C home > Mailing lists > Public > www-style@w3.org > April 2014

Re: [css-background] Add the *-x/y longhands to appropriate properties?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 21 Apr 2014 18:45:03 -0700
Message-ID: <CAAWBYDD=SLZPFBJ8WmOC7jV77Gm_eySMwu4dB2bxOY7BZSGWWA@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style list <www-style@w3.org>
On Mon, Apr 21, 2014 at 6:41 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Apr 21, 2014, at 10:44 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>>> OK, so I guess 'bg-pos-y:start' would get mapped to 'bg-pos-y:top' and to 'bg-pos-block:start' once you knew the mode was horizontal-tb. Right?
>> Well, it would just get mapped to "bg-pos-y: top;".  No need to map it
>> into the other property, since they're aliases.
> Not sure if you are sitting hairs between "mapping" vs. "aliasing",

Splitting hairs between computed values and aliasing.

> but my point was that it is only an alias once you know the mode is horizontal-tb, no? Otherwise, if(!horizontal) y != block.

"bg-pos-y: start" isn't a shorthand for anything else, but it does
turn into "bg-pos-y: top" (or bottom) depending on w-m/direction.

bg-pos-y is then also an alias for either bg-pos-inline or
bg-pos-block, depending on w-m/direction.

Received on Tuesday, 22 April 2014 01:45:54 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:39 UTC