mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
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.
14 lines
370 B
HTML
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>
|