diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/forms/input/radio/radio-clamp-01.html | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/forms/input/radio/radio-clamp-01.html')
-rw-r--r-- | layout/reftests/forms/input/radio/radio-clamp-01.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layout/reftests/forms/input/radio/radio-clamp-01.html b/layout/reftests/forms/input/radio/radio-clamp-01.html new file mode 100644 index 0000000000..9d811760c0 --- /dev/null +++ b/layout/reftests/forms/input/radio/radio-clamp-01.html @@ -0,0 +1,33 @@ +<!DOCTYPE HTML> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html> + <head> + <meta charset="utf-8"> + <title>Test clamping width/height of radio.</title> + <link rel="author" title="Louis Chang" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1400050"> + <link rel="match" href="radio-clamp-ref.html"> + </head> + <style> +div { + position: relative; + line-height: 0px; +} +input { + height: 113px; +} + </style> + <body> + <!-- + Default Size of radio is 13px * 13px on all platforms except Linux + (18px * 18px). So given a radio with height 113px, the radio will be + clamped to 13px * 13px and move to center which y is 50px ((113 - 13) / 2). + --> + <div> + <input type="radio"> + <input type="radio" checked> + <div> + </body> +</html> |