зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1660153 [wpt PR 25131] - [image-orientation] Fix background-position, a=testonly
Automatic update from web-platform-tests [image-orientation] Fix background-position An error introduced in a previous patch caused background-position calculations to be broken due to incorrect source rect transforms. Fix it and add a more thorough test. The test fails pending fuzzy matching in Chrome. Bug: 1108698 Change-Id: Iabdc332474daa0c5dc4aeb61df338c6028212c65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2365914 Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#800083} -- wpt-commits: f7d38f48f4be0522a695b7ed4e228e6ac3671605 wpt-pr: 25131
This commit is contained in:
Родитель
0ea4f3029c
Коммит
bf4d7f8732
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Images Module Level 3: image-orientation with background positions</title>
|
||||
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation">
|
||||
<link rel="match" href="reference/image-orientation-background-position-ref.html">
|
||||
<meta name="fuzzy" content="10;100">
|
||||
<style>
|
||||
.exif-2 {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 50px;
|
||||
height: 50PX;
|
||||
background-color: grey;
|
||||
background-image: url(support/exif-orientation-2-ur.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: -30px -20px;
|
||||
}
|
||||
|
||||
.exif-6 {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 70px;
|
||||
width: 50px;
|
||||
height: 50PX;
|
||||
background-color: grey;
|
||||
background-image: url(support/exif-orientation-6-ru.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: -20px -30px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="exif-2">
|
||||
</div>
|
||||
<div class="exif-6">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Images Module Level 3: image-orientation with background positions reference</title>
|
||||
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation">
|
||||
<style>
|
||||
.exif-2 {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 50px;
|
||||
height: 50PX;
|
||||
background-color: grey;
|
||||
background-image: url(../support/exif-orientation-2-ur-pre-rotated.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: -30px -20px;
|
||||
}
|
||||
|
||||
.exif-6 {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 70px;
|
||||
width: 50px;
|
||||
height: 50PX;
|
||||
background-color: grey;
|
||||
background-image: url(../support/exif-orientation-6-ru-pre-rotated.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: -20px -30px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="exif-2">
|
||||
</div>
|
||||
<div class="exif-6">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче