W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [cssom-view] use of "padding edge" in CSSOM view spec makes no sense

From: Glenn Adams <glenn@skynav.com>
Date: Thu, 8 Mar 2012 15:16:38 -0700
Message-ID: <CACQ=j+dopsst1TqsRs_SxLiGh8hxQ38rXKijfLkxixCeiVkcyw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
thanks, see https://www.w3.org/Bugs/Public/show_bug.cgi?id=16276

On Wed, Mar 7, 2012 at 9:10 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> CSSOM-view repeatedly talks about the "padding edge" of elements.  The
> definition of offsetX is a good example.
>
> However at http://dvcs.w3.org/hg/cssom-**view/raw-file/tip/Overview.**
> html/#padding-edge<http://dvcs.w3.org/hg/cssom-view/raw-file/tip/Overview.html/#padding-edge>it says:
>
>  Content edge, padding edge, border edge, and canvas are defined
>  by CSS.
>
> Problem is, CSS defines the padding edge of a _box_, not of an element.
>  And a single element can correspond to multiple boxes, so the CSSOM-view
> definition is somewhat useless.
>
> As a specific example, consider the following testcase (in logical order):
>
>  <span>ABC 1234 DEF</span>
>
> This will render, I believe, as:
>
>  FED 1234 CBA
>
> What is the padding edge here, exactly?  What about if there are some line
> breaks in the text?
>
> -Boris
>
>
Received on Thursday, 8 March 2012 22:17:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT