[Adium-devl] WKMV styles and the Set Font control
Andrew Harvey
andrew at mootpointer.com
Thu Jul 12 16:23:47 UTC 2007
On 13/07/2007, at 2:17 AM, David Smith wrote:
>
> On Jul 12, 2007, at 8:57 AM, Peter Hosey wrote:
>
>> On Jul 12, 2007, at 05:25:29, Chris Forsythe wrote:
>>> Is there any way we can just ignore whatever explicit stuff is in
>>> the style, and just allow the user to do what they are wanting to
>>> do?
>>
>> This would be a two-part process:
>>
>> 1. After initially creating the message view and loading the
>> initial state of its style, walk its DOM tree and kill all font-*
>> rules.
>> 2. After inserting a message, walk the DOM tree and kill font-*
>> rules again, but this time only affect the last element at each
>> level instead of all elements.
>>
>> That sounds like a huge runtime-waster, but obviously, I have not
>> profiled this solution.
>>
>> The other problem with it is that it would kill *all* font rules,
>> including those for non-message text. It's fine for a message view
>> style to use explicit fonts for anything other than messages (e.g.,
>> the Trebuchet text in the GoneDark header).
>
> Why not just apply our own font rule with ! important, so it
> overrides the style?
That was going to be my suggestion. That should leave the
individually assigned styles on spans untouched, if I correctly
remember the inheritance structure of CSS.
Andrew
More information about the devel
mailing list