Skip to content

Artifacts when rendering SVG straight lines #540

Description

@OndrejKarlik

SVG straight lines with non-integer coordinates render wrong. This is a repro case: SVG with 3 lines:

<html>
   <head>
   </head>
   <body>
            <svg style="width:100%; height: 100%;">
                <path d="M  357,620  l   95.4              , -20.2 " stroke="red" ></path>
                <path d="M  357,620  l  -95.4              ,  20.2 " stroke="red" ></path>
                <path d="M  328,500  l  -26.55999999999999 ,  56.08 "  stroke="red" ></path>
            </svg>
   </body>
</html>

Result from Chrome (cropped):

Image

Result from Ultralight 1.4.0 (cropped):

Image

The artifacts randomly appear, disappear, get bigger or smaller, when changing the coordinates. They also seem to happen also with integer coordinates, but less often.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions