mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 03:47:48 +02:00
To rebaseline image test expecatations, I ran:
out/gn/Ladybird.app/Contents/MacOS/headless-browser \
--resources $PWD/out/gn/Ladybird.app/Contents/Resources \
--dump-failed-ref-tests \
--run-tests $PWD/Tests/LibWeb \
--filter 'canvas-*'
I then copied over the new baselines with
D=Tests/LibWeb/Ref/reference/images
cp test-dumps/canvas-implict-moves-and-lines.png \
$D/canvas-implict-moves-and-lines-ref.png
(Note: No `-ref` suffix on first path, yes suffix on second path.)
We currently don't track if a path is open or closed, and paint
butt linecaps at the end of closed paths too. We did that with
round linecaps as well, but there that wasn't visible. This makes
closed paths look a bit weird now; we'll have to fix this in a
follow-up. In a way, this just exposes another not-yet-implemented
feature.
16 lines
673 B
Plaintext
16 lines
673 B
Plaintext
// https://html.spec.whatwg.org/multipage/canvas.html#canvaslinecap
|
|
// enum CanvasLineCap { "butt", "round", "square" };
|
|
// enum CanvasLineJoin { "round", "bevel", "miter" };
|
|
|
|
// https://html.spec.whatwg.org/multipage/canvas.html#canvaspathdrawingstyles
|
|
interface mixin CanvasPathDrawingStyles {
|
|
attribute unrestricted double lineWidth;
|
|
attribute CanvasLineCap lineCap;
|
|
[FIXME] attribute CanvasLineJoin lineJoin;
|
|
[FIXME] attribute unrestricted double miterLimit;
|
|
|
|
[FIXME] undefined setLineDash(sequence<unrestricted double> segments);
|
|
[FIXME] sequence<unrestricted double> getLineDash();
|
|
[FIXME] attribute unrestricted double lineDashOffset;
|
|
};
|