lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] changing the color of the alts of img tags


From: Thomas Dickey
Subject: Re: [Lynx-dev] changing the color of the alts of img tags
Date: Mon, 29 Jul 2019 20:15:14 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Sun, Jul 28, 2019 at 08:34:14AM -0600, address@hidden wrote:
> 
>       How can I change the color of the alts of img tags?  What does
> the img color in lynx.lss control?

In an example I just checked, the trace shows me it's applied to
the "alt" text.

       -trace_mask=value
              turn on optional traces, which may result in  very  large  trace
              files.  Logically OR the values to combine options:

              1  SGML character parsing states

              2  color-style

The "2" bit in -trace-mask shows the hash-code and color value, e.g.,
in my test 1375 is the hash code (I set -trace-mask=1023):

LSS:img:dim:brown
parse_style(img:dim:brown)
CSSPARSE:img => 1375 
CSS(PA):style d=72 / h=1375, e=img

CSS(SET): <img> hash=1375, ca=0x1800, ma=0x100000

CSS.elt:<IMG>
STYLE.start_element: <IMG>, hcode=1375.

CSS.CS:<img> style 1375 color 0x1800
CACHED: <img> @(14,5)
CSS:LYAttrset color 0x1800 -> (brown/black)
[14, 5] LYwaddnstr(S, 1)
[14, 6] LYwaddnstr(a, 1)
[14, 7] LYwaddnstr(m, 1)

You may not see the color if the img is nested inside something.

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]