From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74746 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: Cascading styles Date: Mon, 06 Dec 2010 12:21:42 +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 1291634524 15798 80.91.229.12 (6 Dec 2010 11:22:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 11:22:04 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23102@lists.math.uh.edu Mon Dec 06 12:22:00 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 1PPZ8p-0006yh-TU for ding-account@gmane.org; Mon, 06 Dec 2010 12:22:00 +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 1PPZ8d-0003B4-P5; Mon, 06 Dec 2010 05:21:47 -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 1PPZ8c-0003Ap-28 for ding@lists.math.uh.edu; Mon, 06 Dec 2010 05:21:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPZ8a-0005Te-Ns for ding@lists.math.uh.edu; Mon, 06 Dec 2010 05:21:45 -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 1PPZ8Z-0007vS-00 for ; Mon, 06 Dec 2010 12:21:43 +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 D71F814035 for ; Mon, 6 Dec 2010 12:21:40 +0100 (CET) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1PPZ8Y-0002kl-Rw for ding@gnus.org; Mon, 06 Dec 2010 12:21:42 +0100 Mail-Followup-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 05 Dec 2010 14:14:42 +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:74746 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Dec 05 2010, Lars Magne Ingebrigtsen wrote: > Yes, but that's special-casing the colour things. :-) If you have > >

foo

bar > > then only the top-level p should have a border, and the next one > shouldn't. But it's kinda moot, since I don't think any of the > properties we're interested in have this kinda of behaviour. Well, rendering foo is calling shr-descend, so you'll only have border style set on foo. (how to draw the border is another problem. :)) >> With: >>

foo

bar

>> >> 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. > > Yes... except that we're setting the colour after rendering all the > children today. Yes, that's our problem I think. I think it should be done in 2 passes: first render text (`insert') then render style (`overlay'). That would probably solves all the problem (and maybe insert new ones :-)). =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) iEYEARECAAYFAkz8x0YACgkQpGK1HsL+5c3u6ACeJdwgZ3CGRLDsMQ1XGpoC0Klj QYsAoL3Gq68OhiSivD+BN81pt6HIziGh =aXdm -----END PGP SIGNATURE----- --=-=-=--