Skip to content

SVG's viewBox attribute in dependencies is set to invalid lowercase #1247

@MrAntix

Description

@MrAntix

Stencil version:

 @stencil/core@0.16.0-6

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
as described the svg viewBox is lowercase causing the svg to be incorrectly rendered

Expected behavior:
viewBox to be rendered with the correct case

Steps to reproduce:
Create a component lib with a component containing an SVG and a valid viewBox attribute
Create a host app with no SVG's

use the component in the host

Other information:
This is a known issue
https://github.com/ionic-team/stencil/blob/02372919d480e50109384ec059970b237b2d0939/src/compiler/transpile/transpile-app.ts#L41

Work Around: add an SVG to the host app

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions