v_kyr Posted June 3, 2022 Share Posted June 3, 2022 These are Affinity SVG parsing/interpretation bugs, since according to the SVG spec, a style attribute prevails ... Quote SVG style attribute The SVG element style attribute works in any SVG tag. When overriding attributes in the style attribute with CSS, the CSS property in the style attribute prevails.<rect style="fill: beige" fill="aliceblue" width="300" height="100" /> The element is filled with beige because the declarations in the style attribute take precedence over the fill attribute. Just as with HTML elements, a style attribute sits closer to the element than a class—so style also prevails over global CSS declarations. In Affinity however the above defined SVG rectangle will be always shown in aliceblue instead of beige, since the precedence over the fill attribute never takes place! - This probably affects all Affinity platform versions! See related and for more informations this thread here ... Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
Staff Lee D Posted June 7, 2022 Staff Share Posted June 7, 2022 This will be due to our importer not reading the included style sheet with the SVG file, this is logged with our developers to investigate. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.