[Webkit-unassigned] [Bug 7987] Inspector displays incorrect summary for padding information

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 30 22:21:39 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=7987


Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org




--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org>  2009-09-30 22:21:39 PDT ---
Here is more information on what is currently output and where that output is
coming from.  Note that "x" is the "style" object on the padding property being
displayed.  The images have plenty of detail.

> padding: 35px;
>     padding-right: 20px;
>     padding-bottom: 20px;
>     padding-left: 20px;
> padding-top: 35px;

#outer_top
http://grab.by/6WF
- fading is consistent
- getShorthandValue is only "35px" (not correct, misleading)
- getLonghandProperties returns 3 elements (indicates 1 missing)


> padding: 20px 5px;
>     padding-top: 20px;
>     padding-right: 20px;
>     padding-bottom: 20px;
> padding-left: 5px;

#outer_left
http://grab.by/6WB
- fading is not consistent
- getShortHandValue is "20px 5px" (not correct, misleading)
- getLonghandProperties returns 3 elements (indicates 1 missing)


> padding: 10px;
>     padding-top: 10px;
>     padding-right: 10px;
>     padding-bottom: 10px;
>     padding-left: 10px;

A <div> I created with div.style.padding = '10px';
http://grab.by/6WG
- fading is not consistent
- getShortHandValue is "10px" (correct)
- getLonghandProperties returns 4 elements

- - - 

> I think what is expected is:
> 
> padding: --20px-- 20px 20px 20px;
>    --padding-top: 20px;--
>         padding-right: 20px;
>         padding-bottom: 20px;
>         padding-left: 20px;
> padding-top: 35px;
> 
> Where "--" is striked out.

Although this is possible from the JavaScript by fiddling with the Shorthands
and Longhands I'd be worried about the maintainability of a JavaScript
solution.  Any tips on where these values are calculated on the C++ side?

I'm really interested in how it came up with "20px 5px" for #outer_left which
indicates top and bottom both have 20px and left and right both have 5px. Thats
clearly not right.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list