Re: Pseudo-class :framed for the body element

> I was thinking. Would it be useful if one could style a page differently =
> if it is inside a frame?
> body{background-color:blue;}
> body:framed{background-color:green;}

I'm not sure I want to encourage any use of frames, but, especially
given that frame elements can only appear in a frame document,
and body cannot appear in such documents, I think it might be better to
introduce a virtual frame element in a framed page, so that one gets:

frame body {background-color: green; color: ...}
frame body a:link {color: .....}
frame body a:....

Note, any mechanism like this needs to apply to object as well as
frames and iframes.

> 
> Also I was wondering for the :checked pseudo-class. Wouldn't it be more =
> useful if one could use it for all elements?
> a{background-color:blue;}
> a:checked{background-color:green;}

Checked has a specific meaning for *check* boxes; what does it mean for
other elements.  How does a:checked differ from at least one of a:visited
and a:active.

[ in redundant attachment ]
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

No it's not.  Real HTML 4.0 has a title element, not to mention quotes
round attributes containing # characters!

Received on Friday, 4 April 2003 16:32:36 UTC