mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Known issues: * Collapsed borders do not correctly affect the border-box of the table itself. * The content widths of all cells in a column and the content height of all cells in a row is the same in this patch, but not in Gecko and WebKit. * Corners are not painted well. The spec does not say what to do here. * Column spans are not handled well. The spec does not say what to do here either.
40 lines
957 B
HTML
40 lines
957 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
@font-face {
|
|
font-family: 'ahem';
|
|
src: url(fonts/ahem/ahem.ttf);
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: white;
|
|
}
|
|
.red {
|
|
color: red;
|
|
}
|
|
.green {
|
|
color: green;
|
|
}
|
|
.ib {
|
|
display: inline-block;
|
|
}
|
|
span {
|
|
font-family: ahem;
|
|
font-size: 100px;
|
|
}
|
|
.bg {
|
|
background-color: white;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 500px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="bg">
|
|
<span class="red">X</span><img src="400x400_green.png"><span class="green ib">X</span>
|
|
</div>
|
|
</body>
|
|
</html>
|