'markerWidth' and 'markerHeight' svg attributes getting converted to 'marker-width' and 'marker-height'
See original GitHub issueThe SVG attributes markerWidth
and markerHeight
getting converted to marker-width
and marker-height
which are invalid attributes.
Input:
<marker id="arrow" viewBox="-10 -10 20 20" markerWidth="20" markerHeight="20" />
Preact output:
<marker id="arrow" viewBox="-10 -10 20 20" marker-width="20" marker-height="20" />
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (7 by maintainers)
Top Results From Across the Web
markerWidth - SVG: Scalable Vector Graphics - MDN Web Docs
The markerWidth attribute represents the width of the viewport into which the is to be fitted when it is rendered according to the...
Read more >Painting: Filling, Stroking and Marker Symbols - SVG 1.1 - W3C
Properties 'fill' and 'stroke' take on a value of type <paint>, ... If markerUnits="strokeWidth", markerWidth, markerHeight and the contents ...
Read more >SVG markers broken in internet explorer? - Stack Overflow
Add the stroke: none; in tour path style. Like this: <svg viewBox="0 0 100 100"> <defs> <marker id="arrow" markerWidth="5" markerHeight="6" refx="5" ...
Read more >Re-purposing Icons as Markers — Using SVG with CSS3 and ...
In the book, we discuss how the viewBox attribute on the <marker> element ... using markerWidth and markerHeight ; by default, your viewBox...
Read more >SVG markerWidth Attribute - GeeksforGeeks
The markerWidth attribute indicates the width of the viewport within which ... < svg viewBox = "-20 -5 1220 520" ... markerHeight =...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oh no… I was using v10.3.2.
Are you using the latest version of Preact? This was fixed in v10.3.3 with https://github.com/preactjs/preact/pull/2366 If you have a look at the tests it covers this test case for
markerWidth
andmarkerHeight
🙂