| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| <link rel="reference" href="background-intrinsic-ref.xht"> |
| <title>CSS Test: Background Intrinsic Sizes: Intrinsic Ratio (Match Widths)</title> |
| <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"> |
| <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties"> |
| <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-size"> |
| <meta name="flags" content="may svg"> |
| <meta name="assert" content="A background image with only an intrinsic ratio covers largest rectangle at that ratio that exceeds neither the height nor width of the background positioning area."> |
| /* Setup. Use 5:6 ratio because it's weird and unlikely to be hard-coded anywhere. */ |
| background: green; /* Used to match reference; remove for debugging. */ |
| border: 10px solid transparent; |
| background: no-repeat url(resources/green-intrinsic-ratio-landscape.svg); |
| background: no-repeat url(resources/red-intrinsic-ratio-landscape.svg); |
| <p>There must be two green boxes below and no red.</p> |
| <div class="control"></div> |
| <div class="control"></div> |