[Project_owners] Skinning extension through userContent.css?

Neil neil at parkwaycc.co.uk
Sun Nov 21 11:01:41 EST 2004


Sudhakar Chandra wrote:

> Neil wrote:
>
>> Sudhakar Chandra wrote:
>>
>>> I do have a slight problem.  My XUL extension (a news aggregator), 
>>> generates HTML, saves it to a file and opens it in an iframe using a 
>>> file:// url. I am not sure if that would be skinnable through 
>>> userChrome.css.
>>
>> If you use <iframe type="content"> or <iframe type="content-primary"> 
>> then userContent.css applies; if you just use <iframe> then 
>> userChrome.css applies; I don't know what happens for other types.
>
> Where did you find out about the type attribute? XULplanet doesn't 
> have any references to it.

Actually nsFrameLoader.cpp suggests only content and content-primary 
have any meaning at present.

> Also, what about a tabbrowser instead of an iframe? Would 
> type="content|content-primary" make userContent.css apply?

tabbrowser automatically switches the current tab to content-primary and 
background tabs to content type.


More information about the Project_owners mailing list