mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00: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.
13 lines
462 B
HTML
13 lines
462 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/svg-textPath-ref.html" />
|
|
<meta name="fuzzy" content="maxDifference=0-2;totalPixels=0-355">
|
|
<svg width="400" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
<path
|
|
id="path"
|
|
fill="none"
|
|
stroke="red"
|
|
d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" />
|
|
<text>
|
|
<textPath href="#path">Quick brown fox jumps over the lazy dog.</textPath>
|
|
</text>
|
|
</svg>
|