link element<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="210mm" height="297mm" viewBox="0 0 744.09448819 1052.3622047" version="1.1"> <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="style.css" type="text/css" /> <g> <circle class="circle" cx="86.428566" cy="84.505058" r="70.714287" /> </g> </svg>With the following css file:
.circle { -fx-fill: Green; -fx-stroke: Red; }
fill, you must use the -fx-fill property namestroke, you must use the -fx-stroke property name.circle { -fx-fill: Green; -fx-stroke: Red; }
<?xml-stylesheet href="style.css" type="text/css"?> <svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="210mm" height="297mm" viewBox="0 0 744.09448819 1052.3622047" version="1.1"> <g> <circle class="circle" cx="86.428566" cy="84.505058" r="70.714287" /> </g> </svg>
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="210mm" height="297mm" viewBox="0 0 744.09448819 1052.3622047" version="1.1"> <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="style.css" type="text/css" /> <g> <circle class="circle" cx="86.428566" cy="84.505058" r="70.714287" /> </g> </svg>
Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License