mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
layout: background-origin attribute for gradients
Fixes the glitches mentioned in #19554. Now gradient tiles are placed in the whole bounding box.
This commit is contained in:
parent
7897bd15d7
commit
b0492f53af
8 changed files with 202 additions and 25 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
#x {
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
background-image: repeating-linear-gradient(to bottom right, white, black, white 30px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="x"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue