mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
gfx: Add elliptical border radius support
This commit is contained in:
parent
7474b29510
commit
3e5fb49b6f
9 changed files with 603 additions and 305 deletions
|
@ -64,6 +64,7 @@ flaky_cpu == append_style_a.html append_style_b.html
|
|||
== border_radius_asymmetric_sizes_a.html border_radius_asymmetric_sizes_ref.html
|
||||
== border_radius_clip_a.html border_radius_clip_ref.html
|
||||
!= border_radius_dashed_a.html border_radius_dashed_ref.html
|
||||
== border_radius_elliptical_a.html border_radius_elliptical_ref.html
|
||||
== border_radius_overlapping_a.html border_radius_overlapping_ref.html
|
||||
== border_spacing_a.html border_spacing_ref.html
|
||||
== border_spacing_auto_layout_a.html border_spacing_ref.html
|
||||
|
|
25
tests/ref/border_radius_elliptical_a.html
Normal file
25
tests/ref/border_radius_elliptical_a.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="utf-8" http-equiv="encoding">
|
||||
<style type="text/css">
|
||||
div.box {
|
||||
background: white;
|
||||
border-width: 15px 15px 15px 15px;
|
||||
border-color: yellow red green blue;
|
||||
border-style: solid;
|
||||
border-top-left-radius: 100px 100px;
|
||||
border-top-right-radius: 200px 100px;
|
||||
border-bottom-right-radius: 100px 200px;
|
||||
border-bottom-left-radius: 200px 200px;
|
||||
height: 500px;
|
||||
width: 500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Border Radius - Elliptical</h2>
|
||||
<div id="box1" class="box top"></div><br>
|
||||
</body>
|
||||
</html>
|
47
tests/ref/border_radius_elliptical_ref.html
Normal file
47
tests/ref/border_radius_elliptical_ref.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="utf-8" http-equiv="encoding">
|
||||
<style type="text/css">
|
||||
#box1-top {
|
||||
background: white;
|
||||
border-width: 15px 15px 0px 15px;
|
||||
border-color: yellow red green blue;
|
||||
border-style: solid;
|
||||
border-top-left-radius: 100px 100px;
|
||||
border-top-right-radius: 200px 100px;
|
||||
height: 240px;
|
||||
width: 500px;
|
||||
margin: 0px;
|
||||
}
|
||||
#box1-middle {
|
||||
background: white;
|
||||
margin: 0px;
|
||||
border-width: 0px 15px 0px 15px;
|
||||
border-color: yellow red green blue;
|
||||
border-style: solid;
|
||||
height: 20px;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
#box1-bottom {
|
||||
background: white;
|
||||
border-width: 0px 15px 15px 15px;
|
||||
border-color: yellow red green blue;
|
||||
border-style: solid;
|
||||
border-bottom-right-radius: 100px 200px;
|
||||
border-bottom-left-radius: 200px 200px;
|
||||
height: 240px;
|
||||
width: 500px;
|
||||
margin: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Border Radius - Elliptical</h2>
|
||||
<div id="box1-top"></div>
|
||||
<div id="box1-middle"></div>
|
||||
<div id="box1-bottom"></div><br>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue