Update broken drafts.fxtf.org spec links to W3C TR (#2088) The spec at https://drafts.fxtf.org/filter-effects has moved to https://www.w3.org/TR/filter-effects-1 (the previous URL now 404s). So update the links.
diff --git a/vello_common/src/filter_effects.rs b/vello_common/src/filter_effects.rs index e9853d9..adb0462 100644 --- a/vello_common/src/filter_effects.rs +++ b/vello_common/src/filter_effects.rs
@@ -7,7 +7,7 @@ //! CSS filter functions and low-level SVG filter primitives. The API is designed //! to follow the W3C Filter Effects Module Level 1 specification. //! -//! See: <https://drafts.fxtf.org/filter-effects/> +//! See: <https://www.w3.org/TR/filter-effects-1/> //! //! ## Implementation Status //! @@ -228,7 +228,7 @@ /// These match the CSS Filter Effects specification and provide simple, /// commonly-used visual effects without needing to construct a filter graph. /// -/// See: <https://drafts.fxtf.org/filter-effects/#filter-functions> +/// See: <https://www.w3.org/TR/filter-effects-1/#filter-functions> #[derive(Debug, Clone)] pub enum FilterFunction { /// Gaussian blur effect. @@ -326,7 +326,7 @@ /// beyond the original image boundaries. This is particularly important for blur and /// convolution operations near edges. /// -/// See: <https://drafts.fxtf.org/filter-effects/#element-attrdef-filter-primitive-edgemode> +/// See: <https://www.w3.org/TR/filter-effects-1/#element-attrdef-fegaussianblur-edgemode> #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub enum EdgeMode { /// Extend by duplicating edge pixels (clamp to edge). @@ -358,7 +358,7 @@ /// filter primitives. They can be combined in a `FilterGraph` to create sophisticated /// visual effects. /// -/// See: <https://drafts.fxtf.org/filter-effects/#FilterPrimitivesOverview> +/// See: <https://www.w3.org/TR/filter-effects-1/#FilterPrimitivesOverview> #[derive(Debug, Clone, PartialEq)] pub enum FilterPrimitive { /// Generate a solid color fill. @@ -394,7 +394,7 @@ /// and compositing it with the original. This is a compound operation that /// combines multiple primitive operations into one. /// - /// See: <https://drafts.fxtf.org/filter-effects-2/#feDropShadowElement> + /// See: <https://www.w3.org/TR/filter-effects-1/#feDropShadowElement> DropShadow { /// Horizontal offset of the shadow in pixels. Positive values shift right. dx: f32, @@ -893,7 +893,7 @@ /// of two layers. Unlike compositing operators which deal with alpha, blend modes /// focus on color mixing while preserving the compositing behavior. /// -/// See: <https://drafts.fxtf.org/compositing/#blending> +/// See: <https://www.w3.org/TR/compositing-1/#blending> pub type BlendMode = peniko::Mix; /// Morphological operators for dilate/erode operations.
diff --git a/vello_cpu/src/filter/drop_shadow.rs b/vello_cpu/src/filter/drop_shadow.rs index b5ec01e..5636e38 100644 --- a/vello_cpu/src/filter/drop_shadow.rs +++ b/vello_cpu/src/filter/drop_shadow.rs
@@ -11,7 +11,7 @@ //! 4. Composite shadow color with blurred alpha //! 5. Composite shadow with original graphic //! -//! @see <https://drafts.fxtf.org/filter-effects-2/#feDropShadowElement> +//! @see <https://www.w3.org/TR/filter-effects-1/#feDropShadowElement> use super::FilterEffect; use super::gaussian_blur::apply_blur;