mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
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:
parent
b68f48eb71
commit
43ebe5ca75
Notes:
sideshowbarker
2024-07-17 08:32:56 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/43ebe5ca75 Pull-request: https://github.com/SerenityOS/serenity/pull/14702
1 changed files with 12 additions and 1 deletions
|
@ -362,6 +362,18 @@
|
|||
<br/>
|
||||
<br/>
|
||||
|
||||
<p>These test the inner border-radius shrinking to accommodate the border</p>
|
||||
<em>An <code><img></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>
|
||||
|
|
Loading…
Reference in a new issue