From mboxrd@z Thu Jan 1 00:00:00 1970
X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74399
Path: news.gmane.org!not-for-mail
From: Julien Danjou
Newsgroups: gmane.emacs.gnus.general
Subject: Re: Cascading styles
Date: Fri, 26 Nov 2010 10:17:25 +0100
Message-ID:
References:
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha1; protocol="application/pgp-signature"
X-Trace: dough.gmane.org 1290763125 1268 80.91.229.12 (26 Nov 2010 09:18:45 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Fri, 26 Nov 2010 09:18:45 +0000 (UTC)
To: ding@gnus.org
Original-X-From: ding-owner+M22763@lists.math.uh.edu Fri Nov 26 10:18:39 2010
Return-path:
Envelope-to: ding-account@gmane.org
Original-Received: from util0.math.uh.edu ([129.7.128.18])
by lo.gmane.org with esmtp (Exim 4.69)
(envelope-from )
id 1PLuRz-0004cy-2W
for ding-account@gmane.org; Fri, 26 Nov 2010 10:18:39 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu)
by util0.math.uh.edu with smtp (Exim 4.63)
(envelope-from )
id 1PLuQx-0005SU-7s; Fri, 26 Nov 2010 03:17:35 -0600
Original-Received: from mx1.math.uh.edu ([129.7.128.32])
by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.63)
(envelope-from )
id 1PLuQv-0005SM-Qr
for ding@lists.math.uh.edu; Fri, 26 Nov 2010 03:17:33 -0600
Original-Received: from quimby.gnus.org ([80.91.231.51])
by mx1.math.uh.edu with esmtp (Exim 4.72)
(envelope-from )
id 1PLuQu-0004Ms-Q7
for ding@lists.math.uh.edu; Fri, 26 Nov 2010 03:17:33 -0600
Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94])
by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian))
id 1PLuQt-0005oF-00
for ; Fri, 26 Nov 2010 10:17:31 +0100
Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33])
by rose.easter-eggs.fr (Postfix) with ESMTPS id 4233714100
for ; Fri, 26 Nov 2010 10:17:27 +0100 (CET)
Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72)
(envelope-from )
id 1PLuQq-0002et-Gv
for ding@gnus.org; Fri, 26 Nov 2010 10:17:28 +0100
Mail-Followup-To: ding@gnus.org
In-Reply-To: (Lars Magne Ingebrigtsen's
message of "Fri, 26 Nov 2010 02:16:36 +0100")
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)
X-Spam-Score: -1.9 (-)
List-ID:
Precedence: bulk
Xref: news.gmane.org gmane.emacs.gnus.general:74399
Archived-At:
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
On Fri, Nov 26 2010, Lars Magne Ingebrigtsen wrote:
>>> So you'd inherit down into the DOM and pop when you exit. However,
>>> would that be correct? Er, no, not really. So you'd basically have the
>>> inline thing, plus the stylesheet, but not endlessly combining inline
>>> things.
>>
>> I am missing the why. :)
>
> Well, in this case, the colour renderer is interested in seeing what
> background is, so it's (sort of) inherited downwards, while a border
> setting is not.
>
> Perhaps we should just special-case the colour settings.
I don't like special-case.
I don't see why inheriting would not work with what you did propose. if
its shr-descend call adds style information to the dynamic variable
shr-stylesheet (and merge them of course), we're just having correct
inheritance.
With:
foo
ba=
r
You start with the first style, render foo with background and
foreground. Then you got for bar via shr-descend, which changes color to
green, but merge with the previous dynamically bound shr-stylesheet, so
it still has background set to 'blue'. You render bar, exit 2
shr-descend calls, and continue to render what else is in the document.
If only I had more time I would try to implement something. :)
=2D-=20
Julien Danjou
// =E1=90=B0 http://julien.danjou.info
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkzveyUACgkQpGK1HsL+5c0V7ACdGRJPJiXiaG8eWgQT26FZV8Uh
2yEAn3mQlu/GZXWLVqYOCIh9jiCJ/Aj/
=eUA6
-----END PGP SIGNATURE-----
--=-=-=--