On 11/4/12 13:30, Andrew Fedoniouk wrote: > That are just few details. In any case :tooltip or :popup should be > pseudo-classes that define runtime state of the element rather than > pseudo-elements as someone proposed in this discussion. Pseudo-classes reflect *state*, not separate containers to apply the rules to. So, if :tooltip was a pseudo-class, the declarations within the rule would style the element itself when a tooltip was shown. For example, div[title]:tooltip { background: gold; } would give the div itself a gold background when the tooltip is shown. Which could be useful, but not much. The point here is to be able to style the tooltip itself, and this screams "pseudo-element". Lea Verou (http://lea.verou.me | @LeaVerou)Received on Wednesday, 11 April 2012 23:09:59 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:14 UTC