blob: dd38690dd969465a0b392d8ec86a5a64fdc17a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>webkit-background-origin should not accept text as value</title>
<link rel="author" title="Rob Buis" href="rob.buis@chromium.org">
<link rel="match" href="webkit-background-origin-text-ref.html">
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-4000">
<style>
#target {
width: 0px;
background-image: linear-gradient(green, green 50%, red 50%, red);
background-size: 200px 200px;
background-origin: border-box;
-webkit-background-origin: text;
padding: 25px;
border: 25px solid transparent;
}
</style>
<p>There should be a green square below and no red.</p>
<div id="target"></div>
|