SVG default style

What is the default SVG style ? For example, what is the default font of a new SVG document? Is this described in the SVG specification?

<svg><text x="10" y="10">Hello</text></svg>

thanks

+5
source share
2 answers

Go here and view the page for the line "Initial:". You will then find any initial values ​​that spec specifies for rendering the text. However, for a font family, it indicates:

'font-family'
    Value:      [[ <family-name> |
                    <generic-family> ],]* [<family-name> |
                    <generic-family>] | inherit
    Initial:    depends on user agent
    Applies to:     text content elements
    Inherited:      yes
    Percentages:    N/A
    Media:      visual
    Animatable:     yes

This means that the user agent can decide which font family to use if none is specified, or if it cannot access the font with the given name.

: , CSS (, fill: red;). CSS .

, .

+5

, , SVG Specs 1.1, (font-face/-). :
"" font-face " @font-face CSS2"

, , , . , , , . .: P

0

All Articles