[librsvg: 5/8] Note about presentation attributes vs. shorthand properties




commit 623afd03606afcd6c07ada179b1f7901754c5a72
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Oct 13 12:12:07 2021 -0500

    Note about presentation attributes vs. shorthand properties
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/605>

 FEATURES.md | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/FEATURES.md b/FEATURES.md
index 8dd5ad84..f9ddbb60 100644
--- a/FEATURES.md
+++ b/FEATURES.md
@@ -244,14 +244,19 @@ cond
 
 ## CSS properties
 
-Shorthands:
+The following are shorthand properties.  They are not available as
+presentation attributes, only as style properties, so for example you have to use
+`<path style="marker: url(#foo);"/>`, since there is no `marker` attribute.
 
 | Property | Notes |
 | ---      | ---   |
 | font     |       |
 | marker   |       |
 
-Longhands:
+The following are longhand properties.  Most of them are available as
+presentation attributes, e.g. you can use `<rect fill="blue"/>` as
+well as `<rect style="fill: blue;"/>`.  The Notes column indicates
+which properties are not available as presentation attributes.
 
 | Property                    | Notes                                                  |
 | ---                         | ---                                                    |


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