-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export made from a WebKit repository
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>backdrop-filter: Clip the filter at border box of element</title> | ||
<link rel="author" href="mailto:Hironori.Fujii@sony.com"> | ||
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty"> | ||
<link rel="match" href="reference/backdrop-filter-clip-rect-2-ref.html"> | ||
<meta name="fuzzy" content="maxDifference=0-80; totalPixels=0-1000" /> | ||
<style> | ||
.box { | ||
display: inline-block; | ||
box-sizing: border-box; | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 10px 20px 30px 40px; | ||
border-width: 10px; | ||
} | ||
.no-bf > .box { | ||
background: black; | ||
} | ||
.bf > .box { | ||
border-color: transparent; | ||
backdrop-filter: invert(1); | ||
} | ||
</style> | ||
<div> | ||
<p>Expected: Same size rounded black boxes.</p> | ||
</div> | ||
|
||
<div class="no-bf"> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
</div> | ||
<div class="bf"> | ||
<div class="box" style="border-style:none"></div> | ||
<div class="box" style="border-style:solid"></div> | ||
<div class="box" style="border-style:dotted"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
css/filter-effects/reference/backdrop-filter-clip-rect-2-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="author" href="mailto:Hironori.Fujii@sony.com"> | ||
<style> | ||
.box { | ||
display: inline-block; | ||
box-sizing: border-box; | ||
width: 100px; | ||
height: 100px; | ||
border-radius: 10px 20px 30px 40px; | ||
border-width: 10px; | ||
} | ||
.no-bf > .box { | ||
background: black; | ||
} | ||
</style> | ||
<div> | ||
<p>Expected: Same size rounded black boxes.</p> | ||
</div> | ||
|
||
<div class="no-bf"> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
</div> | ||
<div class="no-bf"> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
<div class="box"></div> | ||
</div> |