diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-ui/box-sizing-007.html')
-rw-r--r-- | testing/web-platform/tests/css/css-ui/box-sizing-007.html | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-ui/box-sizing-007.html b/testing/web-platform/tests/css/css-ui/box-sizing-007.html new file mode 100644 index 0000000000..c51f4318db --- /dev/null +++ b/testing/web-platform/tests/css/css-ui/box-sizing-007.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Basic User Interface Test: box-sizing:border-box and auto sizing of intrinsicly sized replaced elements.</title> +<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> +<link rel="help" href="https://drafts.csswg.org/css-ui-3/#box-sizing"> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width"> +<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height"> +<meta name="flags" content="svg"> +<link rel="match" href="reference/box-sizing-007-ref.html"> +<meta name="assert" content="Exercises the sizing rules in CSS2.1 10.3.2 and 10.6.2 with box-sizing:border-box for replaced elements with either both intrisic dimentions or an intrinsic ratio, to check that they work correctly in terms of the content width height."> +<style> +img { + box-sizing: border-box; + width: auto; + height: auto; + background: white; + margin: 10px; +} + +#t01, #t11, #t21, #t31 { + padding-left: 20px; + margin-left: -10px; /*not strictly necessary, but helps preserve alignment, which makes visual verification easier. */ +} +#t02, #t12, #t22, #t32 { + padding-bottom: 20px; + margin-bottom: -10px; /*not strictly necessary, but helps preserve alignment, which makes visual verification easier. */ +} +#t03, #t13, #t23, #t33 { + width: 120px; + padding-left: 20px; + margin-left: -10px; /*not strictly necessary, but helps preserve alignment, which makes visual verification easier. */ +} +#t04, #t14, #t24, #t34 { + height: 120px; + padding-bottom: 20px; + margin-bottom: -10px; /*not strictly necessary, but helps preserve alignment, which makes visual verification easier. */ +} + +#t30, #t32 { + width: 100px; +} + +#t31 { + height: 100px; +} +body { + max-width: 700px; +} +</style> +<body> + <p>Test passes if there are 20 <strong>filled green squares</strong> and they are the <strong>same size</strong>.</p> + <img id=t00 src="support/w100_h100.svg"> + <img id=t01 src="support/w100_h100.svg"> + <img id=t02 src="support/w100_h100.svg"> + <img id=t03 src="support/w100_h100.svg"> + <img id=t04 src="support/w100_h100.svg"> + + <img id=t10 src="support/w100_r1-1.svg"> + <img id=t11 src="support/w100_r1-1.svg"> + <img id=t12 src="support/w100_r1-1.svg"> + <img id=t13 src="support/w100_r1-1.svg"> + <img id=t14 src="support/w100_r1-1.svg"> + + <img id=t20 src="support/h100_r1-1.svg"> + <img id=t21 src="support/h100_r1-1.svg"> + <img id=t22 src="support/h100_r1-1.svg"> + <img id=t23 src="support/h100_r1-1.svg"> + <img id=t24 src="support/h100_r1-1.svg"> + + <img id=t30 src="support/r1-1.svg"> + <img id=t31 src="support/r1-1.svg"> + <img id=t32 src="support/r1-1.svg"> + <img id=t33 src="support/r1-1.svg"> + <img id=t34 src="support/r1-1.svg"> +</body> |