I believe that is exactly what we are trying to do. There is an ongoing
discussion about how to handle retrieval of CSS shorthand properties in the
ticket 4295 ( http://dev.jquery.com/ticket/4295 ). I think most of the
confusion, at least for me, has been around the use-case for getting the
short-hand. The reason for my first question... trying to understand the
actual need. From this thread (and the ticket) it sounds like maybe the
developer just needs to copy the padding from one element to another.
Reasonable use-case but what about when the developer wants to copy the
"background" property. Isn't it more confusing to support just a subset
versus all the shorthands? Maybe a better solution is to find a better way
to copy CSS from one element to another... if that really is the primary
use-case for supporting CSS shorthand properties.

--
Brandon Aaron

On Wed, May 6, 2009 at 9:36 PM, Matt Kruse <m...@thekrusefamily.com> wrote:

>
> On May 6, 8:28 pm, Brandon Aaron <brandon.aa...@gmail.com> wrote:
> > Out of curiosity... what are you expecting back from the call to padding
> > when it is different for top/bottom vs left/right?
>
> I think an equally valid question is... what does jQuery intend to do
> in such situations? Clearly, crashing is not the best option.
>
> Anything that causes the code to completely crash should be avoided by
> either checking for valid input (if some inputs are considered
> invalid) or by deciding how to handle cases that don't have obvious
> answers (like this case). It's not enough, IMO, to ignore the tough
> questions of how jQuery should behave and point to an alternative. :)
>
> In the example case:
>
> #foo { padding: 5px 10px; }
>
> you may want to consider returning [5,10,5,10] for example.
>
> Matt Kruse
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to