[librsvg: 7/13] Docs for the set_stylesheet() public API
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/13] Docs for the set_stylesheet() public API
- Date: Sat, 1 Feb 2020 13:24:43 +0000 (UTC)
commit c68c5e6c7ddf1ddbdc15ce12a5fa520e217d85e7
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jan 24 17:36:03 2020 -0600
Docs for the set_stylesheet() public API
librsvg_crate/src/lib.rs | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/librsvg_crate/src/lib.rs b/librsvg_crate/src/lib.rs
index 6583ca2c..adeda5dc 100644
--- a/librsvg_crate/src/lib.rs
+++ b/librsvg_crate/src/lib.rs
@@ -366,6 +366,14 @@ impl SvgHandle {
self.0.has_sub(id)
}
+ /// Sets a CSS stylesheet to use for an SVG document.
+ ///
+ /// During the CSS cascade, the specified stylesheet will be used
+ /// with a "User" [origin].
+ ///
+ /// Note that `@import` rules will not be resolved, except for `data:` URLs.
+ ///
+ /// [origin]: https://drafts.csswg.org/css-cascade-3/#cascading-origins
pub fn set_stylesheet(&mut self, css: &str) -> Result<(), LoadingError> {
self.0.set_stylesheet(css)
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]