Great, thank you for the clarification.

On Sep 1, 2006, at 9:41 AM, Christophe Porteneuve wrote:


Sam, Steven, Ryan:

Your understanding is correct. A few precisions though:

- Using element.style in JS is strictly equivalent to working on the
inline HTML element, which DOES have something to do with selector
specificity, as defined by the CSS spec. In short, the inline style,
and therefore the script-exposed style object, have the ultimate
specificity. They override anything.

- Resetting any property of the style object to the empty string makes
it irrelevant, which is the normative behavior as per DOM Level 2 Style
(CSSStyleDeclaration interface).

- Prototype's approach to display is to not back its value for later
restoration (opposite to what it does with a couple other properties,
such as overflow or position). It just overrides it with 'none' to
hide, and stops overriding it to show. Any effect relying on
Element.show, Element.hide and Element.toggle "inherits" this behavior.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to