diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/quirks/reference | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/quirks/reference')
5 files changed, 201 insertions, 0 deletions
diff --git a/testing/web-platform/tests/quirks/reference/green-100px-square-no-red.html b/testing/web-platform/tests/quirks/reference/green-100px-square-no-red.html new file mode 100644 index 0000000000..159d9a52a0 --- /dev/null +++ b/testing/web-platform/tests/quirks/reference/green-100px-square-no-red.html @@ -0,0 +1,4 @@ +<!-- quirks mode --> +<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> +<p>There should be a filled green square below, and no red.</p> +<div style="width:100px; height:100px; background:green;"></div> diff --git a/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html new file mode 100644 index 0000000000..29f8e26a67 --- /dev/null +++ b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-001-ref.html @@ -0,0 +1,76 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Reference: Percent height quirk does not traverse flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .container { + border: 3px solid black; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + display: inline-block; + vertical-align: top; + background: purple; + } + .px { + height: 50px; + width: 50px; + display: inline-block; + vertical-align: top; + background: blue + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div class="container column-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container row-flex"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> + <div class="fixed-height-outer"> + <div class="container grid"> + <div> + <div class="pct"></div> + <div class="px"></div> + </div> + </div> + </div> +</body> +</html> diff --git a/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html new file mode 100644 index 0000000000..19aa243a00 --- /dev/null +++ b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-notref.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Not-reference case: Percent height quirk applies for percent heights on flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + background: purple; + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div> + <div class="column-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="row-flex pct"></div> + </div> + </div> + <div class="fixed-height-outer"> + <div> + <div class="grid pct"></div> + </div> + </div> +</body> +</html> diff --git a/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html new file mode 100644 index 0000000000..c63bc0efa8 --- /dev/null +++ b/testing/web-platform/tests/quirks/reference/percentage-height-quirk-excludes-flex-grid-002-ref.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Reference case: Percent height quirk applies for percent heights on flex/grid containers</title> + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> + <link rel="author" href="https://mozilla.org" title="Mozilla"> + <link rel="mismatch" href="percentage-height-quirk-excludes-flex-grid-002-notref.html"> + <style> + .fixed-height-outer { + height: 80px; + border: 1px solid gray; + margin-bottom: 5px; + } + + .row-flex { + display: flex; + flex-direction: row + } + + .column-flex { + display: flex; + flex-direction: column + } + + .grid { + display: grid; + } + + .pct { + height: 75%; + min-height: 10px; + width: 50px; + background: purple; + } + </style> +</head> +<body> + <div class="fixed-height-outer"> + <div class="column-flex pct"></div> + </div> + <div class="fixed-height-outer"> + <div class="row-flex pct"></div> + </div> + <div class="fixed-height-outer"> + <div class="grid pct"></div> + </div> +</body> +</html> diff --git a/testing/web-platform/tests/quirks/reference/table-cell-width-calculation-abspos-ref.html b/testing/web-platform/tests/quirks/reference/table-cell-width-calculation-abspos-ref.html new file mode 100644 index 0000000000..41d2203b4a --- /dev/null +++ b/testing/web-platform/tests/quirks/reference/table-cell-width-calculation-abspos-ref.html @@ -0,0 +1,18 @@ +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> +<style> +table { + font-size: 10px; + font-family: Ahem; +} +img { + vertical-align: bottom; + width: 10px; + height: 10px; + background: black; +} +</style> +<table> + <tr> + <td id="td">1234567<img id="img" src=""></td> + </tr> +</table> |