Commit 698540a3 authored by Vladimir Levin's avatar Vladimir Levin Committed by Commit Bot

[TransTableContainer] Add WPT tests for trasformed table parts containing fixpos

This patch adds WPT tests for testing whether transformed table parts contain
fixed position elements as specced in:

https://www.w3.org/TR/css-transforms-1/#transformable-element
https://www.w3.org/TR/css-transforms-1/#transform-rendering

R=chrishtr@chromium.org

Bug: 804952, 805996
Change-Id: I2701e7abffddc67ad4ee206948361acfb28cecd1
Reviewed-on: https://chromium-review.googlesource.com/887364Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532584}
parent a077c7a8
......@@ -173,6 +173,12 @@ crbug.com/736052 virtual/prefer_compositing_to_lcd_text/compositing/overflow/com
# Will be fixed in slimming-paint-v175.
crbug.com/798638 fragmentation/repeating-thead-tfoot-different-fragment-height.html [ Failure ]
# Transformed table parts being containers for fixed elements tests. This feature is not yet implemented.
crbug.com/804952 external/wpt/css/css-transforms/transform-transformed-tbody-contains-fixed-position.html [ Failure ]
crbug.com/804952 external/wpt/css/css-transforms/transform-transformed-tfoot-contains-fixed-position.html [ Failure ]
crbug.com/804952 external/wpt/css/css-transforms/transform-transformed-thead-contains-fixed-position.html [ Failure ]
crbug.com/804952 external/wpt/css/css-transforms/transform-transformed-tr-contains-fixed-position.html [ Failure ]
# ====== Paint team owned tests to here ======
# ====== Layout team owned tests from here ======
......
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed caption contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed caption contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed caption element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-caption-contains-fixed-position-ref.html">
<style>
table, caption {
margin: 0;
padding: 0;
border-spacing: 0;
text-align: left;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table style='width: 100px;'>
<caption class='container'>some text<div class='fixed'>fixed</div>
</caption>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tbody contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tbody contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed tbody element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-tbody-contains-fixed-position-ref.html">
<style>
table, tbody, tr, td {
margin: 0;
padding: 0;
border-spacing: 0;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<tbody class='container'>
<tr>
<td>some text<div class='fixed'>fixed</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed td contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed td contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed td element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-td-contains-fixed-position-ref.html">
<style>
table, tbody, tr, td {
margin: 0;
padding: 0;
border-spacing: 0;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<tr>
<td class='container'>some text<div class='fixed'>fixed</div>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tfoot contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tfoot contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed tfoot element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-tfoot-contains-fixed-position-ref.html">
<style>
table, tfoot, tr, td {
margin: 0;
padding: 0;
border-spacing: 0;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<tfoot class='container'>
<tr>
<td>some text<div class='fixed'>fixed</div>
</td>
</tr>
</tfoot>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed th contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
font-weight: bold;
text-align: left;
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed th contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed th element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-th-contains-fixed-position-ref.html">
<style>
table, tr, td, th {
margin: 0;
padding: 0;
border-spacing: 0;
font-weight: bold;
text-align: left;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<tr>
<th class='container'>some text<div class='fixed'>fixed</div>
</th>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed thead contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed thead contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed thead element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-thead-contains-fixed-position-ref.html">
<style>
table, thead, tr, td {
margin: 0;
padding: 0;
border-spacing: 0;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<thead class='container'>
<tr>
<td>some text<div class='fixed'>fixed</div>
</td>
</tr>
</thead>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tr contains fixed position elements reference.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<style>
body {
overflow: hidden;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<div class='container'>some text<div class='fixed'>fixed</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Transformed tr contains fixed position elements.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
<meta name="assert" content='This test ensures that transformed tr element is a containing block for fixed position elements.'>
<link rel="match" href="transform-transformed-tr-contains-fixed-position-ref.html">
<style>
table, tbody, tr, td {
margin: 0;
padding: 0;
border-spacing: 0;
}
.pad {
height: 50px;
}
.container {
transform: translateX(20px) rotate(45deg);
transform-origin: left;
}
.fixed {
position: fixed;
top: 15px;
left: 10px;
background-color: lightblue;
}
</style>
</head>
<body>
<div class='pad'></div>
<table>
<tr class='container'>
<td>some text<div class='fixed'>fixed</div>
</td>
</tr>
</table>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment