Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/cross-fade-natural-size-gradients.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Natural size of cross-fade() with no arguments with natural dimensions</title>
<link rel="author" title="Sam Weinig" href="mailto:sam@webkit.org">
<link rel="match" href="cross-fade-natural-size-gradients-ref.html">
<meta name="assert" content="When no argument of cross-fade() has natural dimensions, neither does the cross-fade(), so it fills its background positioning area.">
<style>
div {
width: 200px;
height: 100px;
background-repeat: no-repeat;
background-image: cross-fade(linear-gradient(rgb(0, 255, 0), rgb(0, 255, 0)) 50%, linear-gradient(rgb(0, 255, 0), rgb(0, 255, 0)) 50%);
}
</style>
<div></div>