summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-top-right-radius-values-004.htm
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-backgrounds/border-top-right-radius-values-004.htm
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-backgrounds/border-top-right-radius-values-004.htm')
-rw-r--r--testing/web-platform/tests/css/css-backgrounds/border-top-right-radius-values-004.htm113
1 files changed, 113 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-backgrounds/border-top-right-radius-values-004.htm b/testing/web-platform/tests/css/css-backgrounds/border-top-right-radius-values-004.htm
new file mode 100644
index 0000000000..bd2bf51e04
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/border-top-right-radius-values-004.htm
@@ -0,0 +1,113 @@
+<!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: Percentage for the vertical radius of 'border-top-right-radius' refers to the height of the border box.</title>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
+ <link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius" />
+ <meta name="assert" content="Percentage for the vertical radius of 'border-top-right-radius' refers to the height of the border box." />
+ <style type="text/css">
+ div
+ {
+ width: 100px;
+ height: 60px;
+ border: 20px solid;
+ }
+ td
+ {
+ width: 150px;
+ height: 120px;
+ }
+ .red
+ {
+ border-color: red;
+ }
+ .pos
+ {
+ margin-top: -100px;
+ }
+ .reference1
+ {
+ border-top-right-radius: 20px 97px;
+ }
+ .test1
+ {
+ border-top-right-radius: 20px 97%;
+ }
+ .reference2
+ {
+ border-top-right-radius: 20px 51px;
+ }
+ .test2
+ {
+ border-top-right-radius: 20px 51%;
+ }
+ .reference3
+ {
+ border-top-right-radius: 20px 25px;
+ }
+ .test3
+ {
+ border-top-right-radius: 20px 25%;
+ }
+ .reference4
+ {
+ border-top-right-radius: 20px 11px;
+ }
+ .test4
+ {
+ border-top-right-radius: 20px 11%;
+ }
+ .reference5
+ {
+ border-top-right-radius: 20px 7px;
+ }
+ .test5
+ {
+ border-top-right-radius: 20px 7%;
+ }
+ .reference6
+ {
+ border-top-right-radius: 20px 5px;
+ }
+ .test6
+ {
+ border-top-right-radius: 20px 5%;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the top right corner of each of the boxes is curved and if there is no red visible on the page.</p>
+ <table>
+ <tr>
+ <td>
+ <div class="red reference1"></div>
+ <div class="pos test1"></div>
+ </td>
+ <td>
+ <div class="red reference2"></div>
+ <div class="pos test2"></div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div class="red reference3"></div>
+ <div class="pos test3"></div>
+ </td>
+ <td>
+ <div class="red reference4"></div>
+ <div class="pos test4"></div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div class="red reference5"></div>
+ <div class="pos test5"></div>
+ </td>
+ <td>
+ <div class="red reference6"></div>
+ <div class="pos test6"></div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html> \ No newline at end of file