mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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.
16 lines
570 B
HTML
16 lines
570 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/svg-gradient-paint-transformation-ref.html" />
|
|
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-231">
|
|
<svg height="150" width="150" xmlns="http://www.w3.org/2000/svg">
|
|
<style>
|
|
.hi {
|
|
font: bold 70px sans-serif;
|
|
}
|
|
</style>
|
|
<linearGradient id="gradient">
|
|
<stop offset="0%" stop-color="rgba(255, 0, 0, 1)"/>
|
|
<stop offset="100%" stop-color="rgba(0, 255, 0, 1)"/>
|
|
</linearGradient>
|
|
<text x="50" y="50" class="hi" fill="url(#gradient)" transform="rotate(45 50 50)">HI</text>
|
|
</svg>
|