[Adium-devl] WKMV styles and the Set Font control
David Smith
catfish.man at gmail.com
Thu Jul 12 16:17:32 UTC 2007
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?
More information about the devel
mailing list