SF.net SVN: docutils:[9940 ] trunk/docutils/docutils/w riters/html5_polyglot/minimal .css

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9940
          http://sourceforge.net/p/docutils/code/9940
Author:   milde
Date:     2024-09-26 14:09:49 +0000 (Thu, 26 Sep 2024)
Log Message:
-----------
HTML5: Fix display of inline images in section headings.

Add selectors for an image inside h1 ... h6 to the rule for inline images.

Modified Paths:
--------------
    trunk/docutils/docutils/writers/html5_polyglot/minimal.css

Modified: trunk/docutils/docutils/writers/html5_polyglot/minimal.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2024-09-23 22:37:00 UTC (rev 9939)
+++ trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2024-09-26 14:09:49 UTC (rev 9940)
@@ -291,4 +291,9 @@
 }
 svg { width: auto; height: auto; }  /* enable scaling of SVG images */
 /* inline images */
-p img, p svg, p video { display: inline; }
+
+p img, p svg, p video,
+h1 img, h2 img, h3 img, h4 img, h5 img, h6 img,
+h1 svg, h2 svg, h3 svg, h4 svg, h5 svg, h6 svg {
+  display: inline;
+}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.