2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>CSS Test: SVG element with a view box with explicit
100% width and height should occupy the entire view port
</title>
5 <link rel=
"author" title=
"Google" href=
"http://www.google.com/" />
6 <link rel=
"match" href=
"reference/inline-svg-100-percent-in-body-ref.html">
7 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width">
8 <link rel=
"help" href=
"http://www.w3.org/TR/SVG11/coords.html#IntrinsicSizing">
9 <meta name=
"flags" content=
"svg image" />
10 <meta name=
"assert" content=
"When width and height of 100% are specified on an inline SVG element with a view box in the body element,
11 the aspecto ratio should be preserved and should occupy the entire view port." />
12 <style type=
"text/css">
26 <p>The box below should occupy the entire view port.
</p>
27 <svg viewBox=
"0 0 100 100" width=
"100%" height=
"100%" version=
"1.1" xmlns=
"http://www.w3.org/2000/svg">
28 <rect x=
"0" y=
"0" width=
"100" height=
"100" fill=
"green" />