- From: Lev Solntsev <greli@mail.ru>
- Date: Thu, 10 Oct 2013 01:52:39 +0400
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: www-style <www-style@w3.org>
Tab Atkins Jr. <jackalmage@gmail.com> писал(а) в своём письме Thu, 10 Oct 2013 01:38:27 +0400: > 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. Haven't used calc() yet. From which edge of a shape does it refer? From the top left corner or bottom right? I bet the former, while background-position using the latter, IIRC, and that's what an author may want.
Received on Wednesday, 9 October 2013 21:53:10 UTC