Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/transform-input-006.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Test (Transforms): Input (type=email)</title>
<link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
<meta name="assert" content='The input element is an atomic inline element,
so it falls under the definition of transformable and should be affected by
transformations as usual. This is one in a series of tests that verify
that a few simple transforms have the expected effect on various types of
inputs. (They only test a few very specific transforms because it would be
difficult to construct a correct reference file for more complex
transforms.)'>
<link rel="match" href="transform-input-006-ref.html">
<meta name="fuzzy" content="maxDifference=0-128;totalPixels=0-2333">
<style>
input {
/* Margin to avoid overlap of translated inputs */
margin: 10px;
}
p + input {
transform: rotate(360deg);
}
p + input + input {
transform: translateX(-10px);
}
p + input + input + input {
transform: translateX(10px);
}
p + input + input + input + input {
transform: translateY(-10px);
}
p + input + input + input + input + input {
transform: translateY(10px);
}
</style>
</head>
<body>
<p>type=email</p>
<input value="foo@example.org" type="email">
<input value="foo@example.org" type="email">
<input value="foo@example.org" type="email">
<input value="foo@example.org" type="email">
<input value="foo@example.org" type="email">
</body>
</html>