[librsvg: 1/4] Define the isolation property




commit f98b392a5af47e6b29218aa7a935b910b35f08aa
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 11 14:39:15 2021 -0600

    Define the isolation property
    
    https://www.w3.org/TR/compositing-1/#isolation
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/630>

 src/properties.rs    |  2 ++
 src/property_defs.rs | 13 +++++++++++++
 2 files changed, 15 insertions(+)
---
diff --git a/src/properties.rs b/src/properties.rs
index ea1854c11..071646e34 100644
--- a/src/properties.rs
+++ b/src/properties.rs
@@ -494,6 +494,7 @@ make_properties! {
     }
 
     longhands_not_supported_by_markup5ever: {
+        "isolation"                   => (PresentationAttr::No,  isolation                   : Isolation),
         "line-height"                 => (PresentationAttr::No,  line_height                 : LineHeight),
         "mask-type"                   => (PresentationAttr::Yes, mask_type                   : MaskType),
         "mix-blend-mode"              => (PresentationAttr::No,  mix_blend_mode              : MixBlendMode),
@@ -713,6 +714,7 @@ impl SpecifiedValues {
         compute!(FontVariant, font_variant);
         compute!(FontWeight, font_weight);
         compute!(GlyphOrientationVertical, glyph_orientation_vertical);
+        compute!(Isolation, isolation);
         compute!(LetterSpacing, letter_spacing);
         compute!(LightingColor, lighting_color);
         compute!(MarkerEnd, marker_end);
diff --git a/src/property_defs.rs b/src/property_defs.rs
index affeb3d42..b4699b04a 100644
--- a/src/property_defs.rs
+++ b/src/property_defs.rs
@@ -510,6 +510,19 @@ make_property!(
     inherits_automatically: false,
 );
 
+make_property!(
+    /// `isolation` property.
+    ///
+    /// https://www.w3.org/TR/compositing-1/#isolation
+    Isolation,
+    default: Auto,
+    inherits_automatically: false,
+
+    identifiers:
+    "auto" => Auto,
+    "isolate" => Isolate,
+);
+
 make_property!(
     // docs are in font_props.rs
     LetterSpacing,


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