Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve that box shadow cannot be displayed without inset attribute,and No blur effect when blur radius is set #3110

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added examples/blue-box.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 8 additions & 46 deletions examples/demo2.html
Expand Up @@ -3,55 +3,17 @@
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
.feedback-overlay-black{
background-color:#000;
opacity:0.5;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
margin:0;
}

</style>

<style>
div{
padding:20px;
margin:0 auto;
border:5px solid black;
}

h1{
border-bottom:2px solid white;
}

h2{
background: #efefef;
padding:10px;
}


</style>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div style="background:red;">
<div style="background:green;">
<div style="background:blue;border-color:white;">
<div style="background:yellow;"><div style="background:orange;"><h1>Heading</h1>
Text that isn't wrapped in anything.
<p>Followed by some text wrapped in a <b>&lt;p&gt; paragraph.</b> </p>
Maybe add a <a href="#">link</a> or a different style of <a href="#" style="background:white;" id="highlight">link with a highlight</a>.
<hr />
<h2>More content</h2>
<div style="width:10px;height:10px;border-width:10px;padding:0;">a</div>
</div></div>

<div class="first-box">
asd
<div class="second-box">
xxx
<div class="third-box">
asx
</div>
</div>

</div>
</div>
<script type="text/javascript" src="../dist/html2canvas.js"></script>
<script type="text/javascript">
Expand Down
10 changes: 10 additions & 0 deletions examples/index.css
@@ -0,0 +1,10 @@
.first-box {
width: 500px;
height: 500px;
background-color: green;
background: url('./blue-box.png') no-repeat;
/* background-size: contain; */
/* background-position: 150px 15px; */
/* text-shadow: 5px 5px #558ABB; */
box-shadow: 10px 5px 5px 1px rgb(255, 0, 0);
}
17 changes: 17 additions & 0 deletions examples/index.less
@@ -0,0 +1,17 @@
.first-box{
width: 500px;
height: 500px;
background-color: green;
box-shadow: 10px 5px 5px 1px red;
background-size: cover;
// .second-box {
// width: 300px;
// height: 300px;
// background-color: green;
// .third-box {
// width: 100px;
// height: 100px;
// background-color: red;
// }
// }
}
Binary file added examples/record.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.