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/css/css-contain/contain-size-select-elem-003.html | |
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/css/css-contain/contain-size-select-elem-003.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/contain-size-select-elem-003.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-size-select-elem-003.html b/testing/web-platform/tests/css/css-contain/contain-size-select-elem-003.html new file mode 100644 index 0000000000..85428064ec --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-size-select-elem-003.html @@ -0,0 +1,44 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>CSS Test: 'contain: size' on select objects should cause them to be sized as if they have no contents.</title> + <link rel="author" title="Morgan Rae Reschenberg" href="mailto:mreschenberg@berkeley.edu"> + <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size"> + <link rel="match" href="contain-size-select-elem-003-ref.html"> + <style> + select { + contain: size; + color: transparent; + } + .minWidth { + min-width: 100px; + } + .width { + width: 100px; + } + .floatLWidth { + float: left; + width: 100px; + } + </style> +</head> +<body> + <select multiple class="floatLWidth"> + <option>CSS Test: A size-contained floated select with specified width and no specified height should size itself as if it had no contents.</option> + <option>a</option> + </select> + <br style="clear:both;"> + + <select multiple class="minWidth"> + <option>CSS Test: A size-contained select with specified min-width should size itself as if it had no contents.</option> + <option>a</option> + </select> + <br> + + <select multiple class="width"> + <option>CSS Test: A size-contained select with specified width should size itself as if it had no contents.</option> + <option>a</option> + </select> +</body> +</html> |