Skip to content

stroke-dasharray treatment of gap or stroke part being 0 #235

Open
@dirkschulze

Description

@dirkschulze

https://drafts.fxtf.org/fill-stroke-3/#stroke-dasharray says:

If all values are zero, it is treated as none.

Even if it might sound obvious but the spec could clarify what happens if a gap or a stroke part is 0 (XOR). Expectation for 2 values:

  • gap is 0, solid stroke,
  • stroke part is 0, none visible stroke.
<svg xmlns="http://www.w3.org/2000/svg">
<path class="st1" d="M2,152.4c18.2,49.1,240.3,108,159.1-149.5" stroke-dasharray="0 10"/>
<path class="st1" d="M2,152.4c18.2,49.1,240.3,108,159.1-149.5" stroke-dasharray="10 0" transform="translate(0, 200)"/>
</svg>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions