mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
gfx: Implement box-shadow
per CSS-BACKGROUNDS.
This commit is contained in:
parent
1bc2c8a639
commit
3ba0abd8ff
21 changed files with 766 additions and 31 deletions
30
tests/ref/box_shadow_border_box_ref.html
Normal file
30
tests/ref/box_shadow_border_box_ref.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
<head>
|
||||
<!-- Tests that the entire border-box is shadowed, not just the content box. -->
|
||||
<style>
|
||||
section {
|
||||
position: absolute;
|
||||
}
|
||||
#a {
|
||||
width: 120px;
|
||||
height: 100px;
|
||||
top: 110px;
|
||||
left: 120px;
|
||||
background: black;
|
||||
}
|
||||
#b {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
border-left: solid green 10px;
|
||||
border-right: solid green 10px;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section id=a></section>
|
||||
<section id=b></section>
|
||||
</body>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue