ladybird/Tests/LibWeb/Screenshot/input/svg-text-effects.html
Jelle Raaijmakers 59a867d3e3
Some checks are pending
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Tests: Enable all screenshot tests on all platforms
With the newly supported fuzzy matching in our test-web runner, we can
now define the expected maximum color channel and pixel count errors per
failing test and set a baseline they should not exceed.

The figures I added to these tests all come from my macOS M4 machine.
Most discrepancies seem to come from color calculations being slightly
off.
2025-07-17 12:59:11 +01:00

33 lines
1.3 KiB
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/svg-text-effects-ref.html" />
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-717">
<svg height="200" width="350" xmlns="http://www.w3.org/2000/svg">
<style>
.text {
font: italic 40px serif;
}
.thakis {
font: bold 70px sans-serif;
}
body {
background-color: white;
}
</style>
<linearGradient id="gradient">
<stop offset="0%" stop-color="rgba(255, 0, 0, 1)"/>
<stop offset="10%" stop-color="rgba(255, 154, 0, 1)"/>
<stop offset="20%" stop-color="rgba(208, 222, 33, 1)"/>
<stop offset="30%" stop-color="rgba(79, 220, 74, 1)"/>
<stop offset="40%" stop-color="rgba(63, 218, 216, 1)"/>
<stop offset="50%" stop-color="rgba(47, 201, 226, 1)"/>
<stop offset="60%" stop-color="rgba(28, 127, 238, 1)"/>
<stop offset="70%" stop-color="rgba(95, 21, 242, 1)"/>
<stop offset="80%" stop-color="rgba(186, 12, 248, 1)"/>
<stop offset="90%" stop-color="rgba(251, 7, 217, 1)"/>
<stop offset="100%" stop-color="rgba(255, 0, 0, 1)"/>
</linearGradient>
<text x="20" y="105" class="text" transform="rotate(-10 50 100)">There you go :^)</text>
<text x="90" y="220" class="thakis" fill="url(#gradient)" transform="rotate(-10 50 100) skewY(-10)">thakis</text>
</svg>