diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/forms/input/color/margin-padding-1-ref.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/forms/input/color/margin-padding-1-ref.html')
-rw-r--r-- | layout/reftests/forms/input/color/margin-padding-1-ref.html | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/layout/reftests/forms/input/color/margin-padding-1-ref.html b/layout/reftests/forms/input/color/margin-padding-1-ref.html new file mode 100644 index 0000000000..9a500d4ced --- /dev/null +++ b/layout/reftests/forms/input/color/margin-padding-1-ref.html @@ -0,0 +1,112 @@ +<!DOCTYPE html> +<html> + <link rel='stylesheet' href='reference-style.css'> + <style> + body > button:nth-child(1) { margin: 10px; padding: 0px; } + body > button:nth-child(2) { margin: 0px; padding: 10px; } + body > button:nth-child(3) { margin: 10px; padding: 10px; } + body > button:nth-child(4) { margin: 5px; padding: 5px; } + body > button:nth-child(5) { margin: 50px; padding: 50px; } + body > button:nth-child(6) { margin: 100px; padding: 100px; } + body > button:nth-child(7) { margin: 10px 0px 0px 0px; padding: 0px; } + body > button:nth-child(8) { margin: 0px 10px 0px 0px; padding: 0px; } + body > button:nth-child(9) { margin: 0px 0px 10px 0px; padding: 0px; } + body > button:nth-child(10) { margin: 0px 0px 0px 10px; padding: 0px; } + body > button:nth-child(11) { margin: 0px; padding: 10px 0px 0px 0px; } + body > button:nth-child(12) { margin: 0px; padding: 0px 10px 0px 0px; } + body > button:nth-child(13) { margin: 0px; padding: 0px 0px 10px 0px; } + body > button:nth-child(14) { margin: 0px; padding: 0px 0px 0px 10px; } + body > button:nth-child(15) { margin: 0px; padding: 2px 4px 6px 8px; } + body > button:nth-child(16) { margin: 2px 4px 6px 8px; padding: 0px; } + + /* The non-native theme has different widget-supplied padding values + * for <input type="color"> and <button>, and so we must calculate + * the color swatch height explicitly. These are computed as the + * widget-supplied min-height (32px) minus padding+border (padding + * as set above, and the 2px of widget-supplied border), clamped to be + * non-negative. + */ + body > button:nth-child(1) .input-color-swatch { height: 28px; } + body > button:nth-child(2) .input-color-swatch { height: 8px; } + body > button:nth-child(3) .input-color-swatch { height: 8px; } + body > button:nth-child(4) .input-color-swatch { height: 18px; } + body > button:nth-child(5) .input-color-swatch { height: 0px; } + body > button:nth-child(6) .input-color-swatch { height: 0px; } + body > button:nth-child(7) .input-color-swatch { height: 28px; } + body > button:nth-child(8) .input-color-swatch { height: 28px; } + body > button:nth-child(9) .input-color-swatch { height: 28px; } + body > button:nth-child(10) .input-color-swatch { height: 28px; } + body > button:nth-child(11) .input-color-swatch { height: 18px; } + body > button:nth-child(12) .input-color-swatch { height: 28px; } + body > button:nth-child(13) .input-color-swatch { height: 18px; } + body > button:nth-child(14) .input-color-swatch { height: 28px; } + body > button:nth-child(15) .input-color-swatch { height: 20px; } + body > button:nth-child(16) .input-color-swatch { height: 28px; } + </style> + <body> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + <button class="input-color"> + <div class="input-color-swatch"> + </div> + </button> + </body> +</html> |