The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

390885 (23) [Avatar] Offline
#1
Hi Keith,
How you doing?
I am learning svg these days.
I stumbled on some CSS styles which are placed in defs element wrapped in SVG tag.
They look like:
<svg>
    <defs>
        <style>
            xxx...
        </style>
    </defs>
</svg>


I wonder if you have any knowledge on this sort of CSS.
If yes, would like to share in CSS in depth?
With combination of SVG inline CSS, HTML inline CSS and external CSS, how can I determine the stylesheet origin and so on?
390885 (23) [Avatar] Offline
#2
Found one difference between normal CSS and svg CSS:
Default value for normal CSS:
transform-origin: 50% 50%


Default value for svg CSS:
transform-origin: 0 0