Re: Display

I apologize for the incomplete message; Firefox sent it due to an unwanted focus change. Here is the rest:

The above is about resetting default values where these values are not known. The other case is resetting default values for multiple element types, such as in the original example of the display property. For example hiding an element's contents except the title, and showing it when the title is hovered:
div.showHide * {
  display:none;
}
div.showHide h2 {
  display:block;
}
div.showHide:hover * {
  display:default;
}

I agree my use cases are not crucial in the real world, and the "default" value is more a nice to have. Anyway it is somehow strange to have a system that does not allow to reset the defaults in some cases...
-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser

Received on Thursday, 29 April 2010 07:14:55 UTC