layout/reftests/border-radius/corner-joins-1-ref.xhtml
author Chun-Min Chang <chun.m.chang@gmail.com>
Tue, 15 Jul 2025 04:19:58 +0000 (7 hours ago)
changeset 796612 185f590c804be0dc5a6803e176e3a96bfecf686b
parent 57856 b80c7aadda8311e73658e0b8d2a500eef511634b
permissions -rw-r--r--
Bug 1974892 - Fix typo in WMFMediaDataEncoder's log r=media-playback-reviewers,alwu Differential Revision: https://phabricator.services.mozilla.com/D256733
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:svg="http://www.w3.org/2000/svg">
<head>
<title>border</title>
<style type="text/css">
@namespace url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");

div.wrapper {
  float: left;
  margin-left: 20px;
  margin-top: 10px;
}

div.cover, div.cover2 {
	position: absolute;
	border: 4px solid white; /* cover areas that may differ */
	width: 140px;
	height: 118px;
	border-radius: 63px;
	margin-left: -2px;
	margin-top: -2px;
}
div.cover2 {
	height: 82px;
	margin-top: 16px;
	border-radius: 63px / 45px;
}

svg|svg {
	display: block;
	width: 146px;
	height: 122px;
	margin-right: -2px;
	margin-bottom: 20px;
}

</style>
</head>
<body>
<div class="wrapper">
<div class="cover"></div>
<div class="cover2"></div>
<svg:svg>
  <svg:rect x="0" y="0" width="144px" height="122px" rx="61px" ry="61px"
            fill="blue"/>
  <svg:rect x="0" y="18px" width="144px" height="86px" rx="61px" ry="43px"
            fill="red"/>
</svg:svg>
<div class="cover"></div>
<div class="cover2"></div>
<svg:svg>
  <svg:clipPath id="topclip">
    <svg:rect x="0" y="0" width="144px" height="61px"/>
  </svg:clipPath>
  <svg:clipPath id="botclip">
    <svg:rect x="0" y="61px" width="144px" height="61px"/>
  </svg:clipPath>
  <svg:rect x="0" y="0" width="144px" height="122px" rx="61px" ry="61px"
            fill="black" clip-path="url(#topclip)"/>
  <svg:rect x="0" y="0" width="144px" height="122px" rx="61px" ry="61px"
            fill="blue" clip-path="url(#botclip)"/>
  <svg:rect x="0" y="18px" width="144px" height="86px" rx="61px" ry="43px"
            fill="red"/>
</svg:svg>
</div>
<div class="wrapper">
<div class="cover" style="width: 142px"></div>
<div class="cover2" style="margin-left: -1px; border-radius: 61px / 45px"></div>
<svg:svg>
  <svg:rect x="0" y="0" width="146px" height="122px" rx="61px" ry="61px"
            fill="blue"/>
  <svg:rect x="0" y="18px" width="146px" height="86px" rx="61px" ry="43px"
            fill="red"/>
</svg:svg>
<div class="cover"></div>
<div class="cover2"></div>
<svg:svg>
  <svg:rect x="0" y="0" width="144px" height="122px" rx="61px" ry="61px"
            fill="black" clip-path="url(#topclip)"/>
  <svg:rect x="0" y="0" width="144px" height="122px" rx="61px" ry="61px"
            fill="blue" clip-path="url(#botclip)"/>
  <svg:rect x="0" y="18px" width="144px" height="86px" rx="61px" ry="43px"
            fill="red"/>
</svg:svg>
</div>
</body>
</html>