简体   繁体   中英

Can I use SVG within a customized the Azure AD B2C user interface?

I am building a customized Azure AD B2C user interface .

I have included a SVG tag within my page.

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <svg width="100" height="100">
                    <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
                </svg>

                <div id="api"/></div>
            </div>
        </div>
    </div>    
</body>

If I visit the page directly the SVG tag renders as expected. If I visit the page within the Azure AD B2C flow the SVG tag is omitted.

Is SVG supported within a customized the Azure AD B2C user interface?

Nope, not supported unfortunately. See allowed tags in this screenshot:

允许标签截图


UserVoice: Stop Blocking Custom HTML Elements and Attributes | Add Angular SSR Support

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM