summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht')
-rw-r--r--testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht158
1 files changed, 158 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht b/testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht
new file mode 100644
index 0000000000..60490e4808
--- /dev/null
+++ b/testing/web-platform/tests/css/css-sizing/box-sizing-replaced-002.xht
@@ -0,0 +1,158 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Test: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing</title>
+ <link href="http://fantasai.inkedblade.net/contact" title="Elika J. Etemad" rel="author"></link>
+ <link href="mailto:sjohnson@mozilla.com" title="Scott Johnson" rel="author"></link>
+ <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#box-sizing" />
+ <link rel="match" href="box-sizing-replaced-002-ref.xht" />
+ <meta content="image" name="flags"></meta>
+ <meta name="assert" content="All images should be sized at 75px x 75px, with 5px of padding and 5px of blue border around each." />
+ <!--
+ This test is derived from replaced-min-max-001, part of the W3C CSS 2.1
+ test suite.
+ -->
+ <style type="text/css">
+ p {
+ display: inline-block;
+ background-color: white;
+ padding: 0px 0px;
+ margin: 0px 0px;
+ }
+
+ .with-borderpadding {
+ padding: 5px 5px;
+ border: 5px solid blue;
+ box-sizing: border-box;
+ }
+
+ #img1 {
+ min-width: 80px;
+ max-width: 125px;
+ min-height: 65px;
+ max-height: 140px;
+ }
+
+ #img2 {
+ max-width: 95px;
+ min-height: 80px;
+ }
+
+ #img3 {
+ max-width: 95px;
+ min-height: 95px;
+ }
+
+ #img4 {
+ min-width: 95px;
+ max-height: 120px;
+ }
+
+ #img5 {
+ min-width: 95px;
+ max-height: 95px;
+ }
+
+ #img6 {
+ min-width: 80px;
+ max-height: 95px;
+ }
+
+ #img7 {
+ min-width: 95px;
+ max-height: 95px;
+ }
+
+ #img8 {
+ max-width: 120px;
+ min-height: 95px;
+ }
+
+ #img9 {
+ max-width: 95px;
+ min-height: 95px;
+ }
+
+ #img10 {
+ min-width: 95px;
+ max-width: 170px;
+ max-height: 95px;
+ }
+
+ #img11 {
+ min-width: 45px;
+ max-width: 245px;
+ max-height: 95px;
+ }
+
+ #img12 {
+ max-width: 95px;
+ min-height: 95px;
+ max-height: 170px;
+ }
+
+ #img13 {
+ max-width: 95px;
+ min-height: 45px;
+ max-height: 245px;
+ }
+
+ #img14 {
+ min-width: 70px;
+ max-width: 120px;
+ min-height: 95px;
+ }
+
+ #img15 {
+ min-width: 75px;
+ max-width: 95px;
+ min-height: 95px;
+ }
+
+ #img16 {
+ min-width: 95px;
+ min-height: 70px;
+ max-height: 120px;
+ }
+
+ #img17 {
+ min-width: 95px;
+ min-height: 75px;
+ max-height: 95px;
+ }
+
+ #img18 {
+ min-width: 95px;
+ max-height: 95px;
+ }
+
+ #img19 {
+ max-width: 95px;
+ min-height: 95px;
+ }
+ </style>
+ </head>
+ <body>
+ <div>All rectangles should be the same size.</div>
+ <p><img id="img0" class="with-borderpadding" src="support/replaced-min-max.png" alt="FAIL" title="Test 0"></img></p>
+ <p><img id="img1" class="with-borderpadding" title="Test 1" alt="FAIL" src="support/replaced-min-max-1.png"></img></p>
+ <p><img id="img2" class="with-borderpadding" title="Test 2" alt="FAIL" src="support/replaced-min-max-2.png"></img></p>
+ <p><img id="img3" class="with-borderpadding" title="Test 3" alt="FAIL" src="support/replaced-min-max-3.png"></img></p>
+ <p><img id="img4" class="with-borderpadding" title="Test 4" alt="FAIL" src="support/replaced-min-max-4.png"></img></p>
+ <p><img id="img5" class="with-borderpadding" title="Test 5" alt="FAIL" src="support/replaced-min-max-5.png"></img></p>
+ <p><img id="img6" class="with-borderpadding" title="Test 6" alt="FAIL" src="support/replaced-min-max-6.png"></img></p>
+ <p><img id="img7" class="with-borderpadding" title="Test 7" alt="FAIL" src="support/replaced-min-max-7.png"></img></p>
+ <p><img id="img8" class="with-borderpadding" title="Test 8" alt="FAIL" src="support/replaced-min-max-8.png"></img></p>
+ <p><img id="img9" class="with-borderpadding" title="Test 9" alt="FAIL" src="support/replaced-min-max-9.png"></img></p>
+ <p><img id="img10" class="with-borderpadding" title="Test 10" alt="FAIL" src="support/replaced-min-max-10.png"></img></p>
+ <p><img id="img11" class="with-borderpadding" title="Test 11" alt="FAIL" src="support/replaced-min-max-11.png"></img></p>
+ <p><img id="img12" class="with-borderpadding" title="Test 12" alt="FAIL" src="support/replaced-min-max-12.png"></img></p>
+ <p><img id="img13" class="with-borderpadding" title="Test 13" alt="FAIL" src="support/replaced-min-max-13.png"></img></p>
+ <p><img id="img14" class="with-borderpadding" title="Test 14" alt="FAIL" src="support/replaced-min-max-14.png"></img></p>
+ <p><img id="img15" class="with-borderpadding" title="Test 15" alt="FAIL" src="support/replaced-min-max-15.png"></img></p>
+ <p><img id="img16" class="with-borderpadding" title="Test 16" alt="FAIL" src="support/replaced-min-max-16.png"></img></p>
+ <p><img id="img17" class="with-borderpadding" title="Test 17" alt="FAIL" src="support/replaced-min-max-17.png"></img></p>
+ <p><img id="img18" class="with-borderpadding" title="Test 18" alt="FAIL" src="support/replaced-min-max-18.png"></img></p>
+ <p><img id="img19" class="with-borderpadding" title="Test 19" alt="FAIL" src="support/replaced-min-max-19.png"></img></p>
+ </body>
+</html>