Re: [css-shapes] how to position <basic-shape>s

On 10/09/2013 02:38 PM, Tab Atkins Jr. wrote:
> On Wed, Oct 9, 2013 at 2:22 PM, Lev Solntsev <greli@mail.ru> wrote:
>> While compatibility is good thing to concern, background-position syntax
>> gives more possibilities. An element can be positioned from the bottom
>> right corner. Also it's good for i18n—positioning from the right edge
>> is an usual case in RTL-manner styling.
>
> You can do that without the <position> syntax - just use calc().  20px
> from the right edge is "calc(100% - 20px)".  The <position> syntax
> makes this more convenient/readable, but the only difference in
> ability is the functionality of percentages.

calc() does not allow for logical position keywords.

~fantasai

Received on Friday, 18 October 2013 02:05:41 UTC