ladybird/Tests/LibWeb/Screenshot/input/css-border-style-double.html
Sam Atkins 5d4a4e44fe LibWeb/Painting: Paint border-style: double using two solid borders
Call paint_border() recursively, once for the outer line, and once for
the inner one. This is done in a lambda so that we can reuse it for a
couple of other line styles.

Border-radius behaviour doesn't match other browsers, and goes a bit
haywire in some cases. I've left some FIXMEs for someone who
understands the maths here better than I do. 😅

The LineStyle handling is moved to the start of the function, to avoid
unnecessary work.
2025-08-11 11:07:15 +01:00

14 lines
370 B
HTML

<!doctype html>
<link rel="match" href="../expected/css-border-style-double-ref.html" />
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-144">
<style>
div {
width: 200px;
height: 200px;
border-style: double;
border-radius: 30px / 50px;
border-width: 6px 12px 18px 24px;
border-color: red yellow green blue;
}
</style>
<div></div>