Base: Add some more border-radius test cases

* A border-radius + a border on a <img> tag
   - The border-radius on the <img> should shrink to line up with
     the border.
* A border-radius + a border on a div with overflow: hidden
   - The clipping border-radius should shrink (same as the image).
This commit is contained in:
MacDue 2022-07-26 20:47:15 +01:00 committed by Linus Groh
parent b68f48eb71
commit 43ebe5ca75
Notes: sideshowbarker 2024-07-17 08:32:56 +09:00

View file

@ -362,6 +362,18 @@
<br/> <br/>
<br/> <br/>
<p>These test the inner border-radius shrinking to accommodate the border</p>
<em>An <code>&lt;img&gt;</code> tag with a border-radius and a border</em>
<br>
<img src="car.png" style="border-radius: 100%; border: 10px solid limegreen;">
<br/>
<em>Clipping text overflow with a border-radius and a border</em>
<div style="width: 100px; height: 100px; border-radius: 30%; background-color: cyan; overflow: hidden; border: 20px solid salmon;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<br/>
<br/>
<p>The boxes are 50x50px</p> <p>The boxes are 50x50px</p>
<em>All round 10px</em> <em>All round 10px</em>
<div class="box box-1"></div> <div class="box box-1"></div>
@ -400,7 +412,6 @@
<div class="box box-5"></div> <div class="box box-5"></div>
<br> <br>
<br> <br>
<p>200px box, 75px radius</p> <p>200px box, 75px radius</p>
<div class="box box-6"></div> <div class="box box-6"></div>
<br> <br>