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

On Fri, Apr 18, 2014 at 1:59 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> My initial reaction was to agree with you, but then I started thinking about why someone would use 'start' instead of 'top' or 'left'. It would be to align with the text in some significant way.
>
> So, suppose I wanted a radial gradient dot to appear at the start of the block direction (which would be the top of the text block in Latin-based languages), and centered in the inline direction, with enough 'padding-block-start' to make it visible before the first line of text. In that case, "whatever axis is vertical" doesn't help me. I would need a 'bg-pos-block' and 'bg-pos-inline'.

Yes, we're also adding those.

> Do you have a different use case in mind, where 'start' would need to be used instead of 'top' or 'right', but the axis you applied it to would always be vertical? Or alternately horizontal, if you used 'bg-pos-x'? It seems to me that if you didn't care which logical dimension it was aligned to as long as it was the start of the vertical, you would just use 'top' instead of 'start'.

Yes, the use-case is when, for whatever reason (watermarking?) you
want the image to show up at the top of the element, but also at the
"start" of the text, whichever that is.  So you'd do
"background-position: top start;".

~TJ

Received on Friday, 18 April 2014 22:32:44 UTC