summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/border-radius.html
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-07-26 20:47:15 +0100
committerLinus Groh <mail@linusgroh.de>2022-07-26 23:56:29 +0100
commit43ebe5ca7504c8b01a01cde171c91df6f08d7987 (patch)
tree6bdcaffe41a9bcf3bbcdeeefbedfcda2ff8f853d /Base/res/html/misc/border-radius.html
parentb68f48eb7132a3ebda26354e2f5fb067f12dcdf9 (diff)
downloadserenity-43ebe5ca7504c8b01a01cde171c91df6f08d7987.zip
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).
Diffstat (limited to 'Base/res/html/misc/border-radius.html')
-rw-r--r--Base/res/html/misc/border-radius.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/Base/res/html/misc/border-radius.html b/Base/res/html/misc/border-radius.html
index dc58a51f6c..1ca83060a5 100644
--- a/Base/res/html/misc/border-radius.html
+++ b/Base/res/html/misc/border-radius.html
@@ -362,6 +362,18 @@
<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>
<em>All round 10px</em>
<div class="box box-1"></div>
@@ -400,7 +412,6 @@
<div class="box box-5"></div>
<br>
<br>
-
<p>200px box, 75px radius</p>
<div class="box box-6"></div>
<br>