[librsvg: 5/6] Docs - recommendation on injecting stylesheets




commit 9e6a31c3c4698ae071b4a0051bb3d92802ef3f35
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Sep 15 18:55:19 2021 -0500

    Docs - recommendation on injecting stylesheets
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/588>

 doc/recommendations.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/doc/recommendations.xml b/doc/recommendations.xml
index 40f296d7..0a298a4f 100644
--- a/doc/recommendations.xml
+++ b/doc/recommendations.xml
@@ -127,5 +127,19 @@
       icon from a document full of icons —, applications can use
       <function>rsvg_handle_render_element</function>.
     </para>
+
+    <section>
+      <title>Injecting a user stylesheet</title>
+
+      <para>
+        It is sometimes convenient for applications to inject an extra
+        stylesheet while rendering an SVG document.  You can do this
+        with <function>rsvg_handle_set_stylesheet</function>.  During
+        the CSS cascade, the specified stylesheet will be used with a
+        <ulink
+        url="https://drafts.csswg.org/css-cascade-3/#cascading-origins";>"User"
+        origin</ulink>.
+      </para>
+    </section>
   </section>
 </chapter>


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