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

On Sun, Apr 20, 2014 at 5:35 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> On Apr 19, 2014, at 7:07 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> in cases where the axis is irrelevant or unambiguous.
>
> I'm saying that whether an axis is "block-start and/or inline-start" is never irrelevant to a designer. At least, no cases come to mind, which is why I asked if you had a case. But I still haven't heard one. As near as I can tell, if I didn't care which logical axis is vertical - block or inline - it would be because I didn't care that much about how the background related to the text: above the text or to the left of it in Western text. That's pretty unlikely, but if true I might as well use physical properties, except to deal with bidi.

That's basically it, yes.  The background might not be directly
related to the text; you just want it at the top of the page, and then
at the "start" side horizontally, whatever direction that is.

>>  (Such a thing does exist, btw.)
>
> Vertical text can start on either the bottom or the top? OK, I'm not familiar with that, but I'll take your word for it.

For example, when English is written vertically (not mixed in with CJK
or anything, just written vertically by itself) it's often
bottom-aligned.

>>> Except, that would also mean 'bg-pos-inline: left; bg-pos-block: start;' then. Does that mean in vertical text that 'bg-pos-inline: left', and therefore 'bg-pos-x: left;' is invalid?
>>
>> No, the *-inline/block properties would only take logical keywords.
>> The physical keywords don't have that convenient axis-agnostic form,
>> and anyway, you only *need* one of the two property pairs to support
>> mixtures.  (That is, since the physical properties allow mixing
>> physical and logical keywords, we don't need to allow the logical
>> properties to do the same, as it doesn't add anything.)
>
> 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.

~TJ

Received on Monday, 21 April 2014 17:45:01 UTC