SVG element attributes get mangled after build #5578
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-svg
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
help wanted
Up for grabs. We would accept a PR to help resolve this issue
Status: Resolved
Milestone
In one of my components, I have a simple inline SVG with a path in it:
Notice the casing on
viewBox
andpreserveAspectRatio
.After building and running the page containing said component, The result looks like this:
The CSS on that element, if that matters:
The casing on the attributes got flattened to lower-case in the process. At least in Firefox 61 and Chrome 68, This produces an invalid result. Applying any edit to the element in respective browser's devtools or simply correcting the casing produces the expected result.
The text was updated successfully, but these errors were encountered: