mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests Snap the snapped_dest_rect for backgrounds For some reason the snapped_dest_rect for background image geometry calculations was not actually snapped. Snapping it fixes cases where we were not filling to the border without regressing any tests (in fact improving some). Probably fixes most of the background bugs resulting from the previous big refactoring. R=fmalita@chromium.org BUG=912423,889426 Change-Id: Ieba65130e7f8c0e95db7375ab3a8188bfc78d8d5 Reviewed-on: https://chromium-review.googlesource.com/c/1372556 Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#616014} -- wpt-commits: 6bbf5072ab0f8122c825901547265d88f8b02649 wpt-pr: 14469
44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Background Test: A background image on table cells with collapsed borders should fill the table</title>
|
|
<link rel="author" title="schenney" href="mailto:schenney@chromium.org">
|
|
<link rel="help" href="http://www.w3.org/TR/css3-background">
|
|
<link rel="match" href="reference/background-image-table-cells-zoomed-ref.html">
|
|
<style>
|
|
body {
|
|
zoom: 121%;
|
|
}
|
|
.test-table {
|
|
display: table;
|
|
width: 600px;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
background-color: red;
|
|
}
|
|
.test-row {
|
|
padding: 0px;
|
|
border: 0px;
|
|
display: table-row;
|
|
}
|
|
.test-cell {
|
|
display: table-cell;
|
|
padding: 0px;
|
|
height: 50px;
|
|
border: 0px;
|
|
background: url("support/50x50-green.png");
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="test-table">
|
|
<div class="test-row">
|
|
<div class="test-cell"></div>
|
|
<div class="test-cell"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|