Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title>Test 'background-clip: text' on Table Cells</title>
<style>
.container {
position: relative;
top: 2px;
margin: 0px;
height: 80px;
}

.gradient-text {
display: inline-block;
font-size: 40px;
font-family: sans-serif;
line-height: 40px;
background: linear-gradient(to bottom, red 0%, blue 100%);
background-size: 100% 40px;
background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<div class="container">
<div class="gradient-text">Text</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>Test 'background-clip: text' on Table Cells</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#background-clip">
<link rel="match" href="clip-text-background-table-cell-ref.html">
<meta name="fuzzy" content="maxDifference=0-6;totalPixels=0-728">
<style>
table {
position: relative;
top: 1px;
margin: 0;
border-collapse: collapse;
}
tr {
padding: 0;
font-size: 40px;
line-height: 40px;
font-family: sans-serif;
vertical-align: top;
background: linear-gradient(red, blue);
background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<td>Text</td>
</tr>
</thead>
</table>
</body>
</html>
23 changes: 23 additions & 0 deletions css/css-backgrounds/background-multiple-layers-table-cell-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
:root {
font-size: 24pt;
}
.box {
background:
linear-gradient(rgba(0, 128, 0, 0.2), rgba(128, 0, 0, 0.2)) border-box,
linear-gradient(green, yellow) text;
color: transparent;
display: inline-block;
font-weight: bold;
padding: 1px;
}
</style>
</head>
<body>
<div class="box">Text</div>
</body>
</html>
33 changes: 33 additions & 0 deletions css/css-backgrounds/background-multiple-layers-table-cell.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test background layers work fine in table elements</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#background-clip">
<link rel="match" href="background-multiple-layers-table-cell-ref.html">
<meta name="fuzzy" content="maxDifference=0-5;totalPixels=0-370">
<style>
:root {
font-size: 24pt;
}
thead {
background:
linear-gradient(rgba(0, 128, 0, 0.2), rgba(128, 0, 0, 0.2)) border-box,
linear-gradient(green, yellow) text;
color: transparent;
}
table {
border-collapse: collapse;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>Text</th>
</tr>
</thead>
</table>
</body>
</html>
63 changes: 63 additions & 0 deletions css/css-backgrounds/box-shadow-table-row-display-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Box-shadow on display: table-row</title>
<style>
body {
margin: 50px;
background: white;
}

.block {
width: 200px;
height: 200px;
background: #999;
box-shadow: 0 0 50px #000;
}

.block-red {
width: 200px;
height: 200px;
background: #999;
box-shadow: 0 0 50px red;
}

.block-green {
width: 200px;
height: 200px;
background: #999;
box-shadow: 0 0 50px green;
}

.block-blue {
width: 200px;
height: 200px;
background: #999;
box-shadow: 0 0 50px blue;
}

.group {
margin-bottom: 40px;
}
</style>
</head>
<body>

<div class="group">
<div class="block"></div>
</div>

<div class="group">
<div class="block"></div>
<div class="block"></div>
</div>

<div class="group">
<div class="block-red"></div>
<div class="block-green"></div>
<div class="block-blue"></div>
</div>

</body>
</html>
81 changes: 81 additions & 0 deletions css/css-backgrounds/box-shadow-table-row-display.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Box-shadow on display: table-row</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#background-clip">
<link rel="match" href="box-shadow-table-row-display-ref.html">
<meta name="fuzzy" content="maxDifference=0-15;totalPixels=0-2890">
<style>
body {
margin: 50px;
background: white;
}

.table {
display: table;
margin-bottom: 40px;
}

.row {
display: table-row;
background: #999;
box-shadow: 0 0 50px #000;
}

.row-red {
display: table-row;
background: #999;
box-shadow: 0 0 50px red;
}

.row-green {
display: table-row;
background: #999;
box-shadow: 0 0 50px green;
}

.row-blue {
display: table-row;
background: #999;
box-shadow: 0 0 50px blue;
}

.cell {
display: table-cell;
width: 200px;
height: 200px;
}
</style>
</head>
<body>

<div class="table">
<div class="row">
<div class="cell"></div>
</div>
</div>

<div class="table">
<div class="row">
<div class="cell"></div>
</div>
<div class="row">
<div class="cell"></div>
</div>
</div>

<div class="table">
<div class="row-red">
<div class="cell"></div>
</div>
<div class="row-green">
<div class="cell"></div>
</div>
<div class="row-blue">
<div class="cell"></div>
</div>
</div>

</body>
</html>
Loading