[docbook-css] Docbook-css with Firefox v1.5

David Holroyd dave at badgers-in-foil.co.uk
Sun Dec 4 00:14:26 UTC 2005


On Sat, Dec 03, 2005 at 06:10:57PM +0000, martin.gautier at myrnham.co.uk wrote:
> Seems to break the image rendering cleverness and the correct display of 
> numbered lists 

I've just spent the last hour-and-some trying to cajole FF1.5 into doing
something resonable with <orderedlist>.

The best I was able to achieve was using the now-functional
'content: counter(...)' syntax.  Unfortunately, I can't work out how
to get the generated content to appear as a 'marker', so there's always
a line-break inbetween the <listitem>'s number, and the first <para>
child (for example).

It looks like whatever magic was previously done by the -moz-counter-reset
CSS property has moved into the implementation details of HTML <ol>
elements, and is therefore unreachable by simple CSS :(


This patch makes images work again in FF 1.5:

----8<----
--- db-bindings.xml     7 Oct 2005 21:02:39 -0000       1.8
+++ db-bindings.xml     4 Dec 2005 00:11:31 -0000
@@ -110,8 +110,10 @@
       <constructor>
        var img = document.getAnonymousNodes(this)[0];
        var file = this.selectImage();
+       img.src = file;
        // HACK: using img.src=file 'inline' doesn't seem to work
        //       but it does when called from a setTimeout()
+       //       [the above now seems to work in Firefox 1.5 though]
        var f = function() { img.src = file; }
        setTimeout(f, 0);
       </constructor>
---->8----



dave

-- 
http://david.holroyd.me.uk/



More information about the docbook-css mailing list