summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-borders/reference
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-borders/reference
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-borders/reference')
-rw-r--r--testing/web-platform/tests/css/css-borders/reference/border-radius-greater-than-width-ref.html29
-rw-r--r--testing/web-platform/tests/css/css-borders/reference/borders-on-sub-unit-sized-elements-ref.html49
-rw-r--r--testing/web-platform/tests/css/css-borders/reference/subpixel-border-width-ref.tentative.html44
-rw-r--r--testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-border-box-sizing-ref.html38
-rw-r--r--testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-ref.html34
5 files changed, 194 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-borders/reference/border-radius-greater-than-width-ref.html b/testing/web-platform/tests/css/css-borders/reference/border-radius-greater-than-width-ref.html
new file mode 100644
index 0000000000..3c8c470ef5
--- /dev/null
+++ b/testing/web-platform/tests/css/css-borders/reference/border-radius-greater-than-width-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<link rel="author" title="Lin Peng" href="mailto:penglin220@gmail.com">
+<link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius">
+<head>
+ <style>
+ .div1
+ {
+ width: 109px;
+ height: 100px;
+ background: lightgreen;
+ border-top-right-radius: 10px;
+ clip-path: polygon(0 0, 109px 0px, 109px 100px, 100px 100px);
+ }
+ .div2
+ {
+ position: relative;
+ top: -100px;
+ width: 109px;
+ height: 200px;
+ background: black;
+ border-bottom-left-radius: 10px;
+ clip-path: polygon(0 0, 0px 200px, 100px 200px, 100px 100px);
+ }
+ </style>
+</head>
+<body>
+ <div class="div1"></div>
+ <div class="div2"></div>
+</body>
diff --git a/testing/web-platform/tests/css/css-borders/reference/borders-on-sub-unit-sized-elements-ref.html b/testing/web-platform/tests/css/css-borders/reference/borders-on-sub-unit-sized-elements-ref.html
new file mode 100644
index 0000000000..19233778ed
--- /dev/null
+++ b/testing/web-platform/tests/css/css-borders/reference/borders-on-sub-unit-sized-elements-ref.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Borders: Borders appear when the element is smaller than 1/2 a pixel, reference</title>
+<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-width">
+<head>
+<style>
+ #right {
+ position: absolute;
+ top: 10px;
+ left: 65px;
+ width: 0px;
+ height: 50px;
+ border-right: 1px dashed black;
+ }
+ #left {
+ position: absolute;
+ top: 10px;
+ left: 5px;
+ width: 0px;
+ height: 50px;
+ border-left: 1px dashed black;
+ }
+ #top {
+ position: absolute;
+ top: 5px;
+ left: 10px;
+ width: 50px;
+ height: 0px;
+ border-top: 1px dashed black;
+ }
+ #bottom {
+ position: absolute;
+ top: 65px;
+ left: 10px;
+ width: 50px;
+ height: 0px;
+ border-bottom: 1px dashed black;
+ }
+</style>
+</head>
+<body>
+<div id="top"></div>
+<div id="right"></div>
+<div id="bottom"></div>
+<div id="left"></div>
+</body>
+</html>
+
diff --git a/testing/web-platform/tests/css/css-borders/reference/subpixel-border-width-ref.tentative.html b/testing/web-platform/tests/css/css-borders/reference/subpixel-border-width-ref.tentative.html
new file mode 100644
index 0000000000..3ba8ac5754
--- /dev/null
+++ b/testing/web-platform/tests/css/css-borders/reference/subpixel-border-width-ref.tentative.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>
+ CSS Border: width computed value
+ </title>
+
+ <link rel="author" title="Traian Captan" href="mailto:tcaptan@chromium.org">
+
+ <style>
+ .square {
+ height: 20px;
+ width: 20px;
+ border: 1px solid gray;
+ }
+ </style>
+</head>
+
+<body>
+ <h1>
+ Test passes if border widths are rounded up
+ when they are greater than 0 and less than 1,
+ and rounded down when they are greater than 1.
+ </h1>
+
+ <div class="square"></div>
+ <br>
+ <div class="square"></div>
+ <br>
+ <div class="square"></div>
+ <br>
+ <div class="square"></div>
+ <br>
+ <div class="square"></div>
+ <br>
+ <div class="square"></div>
+ <br>
+ <div class="square" style="border-width: 3px;"></div>
+ <br>
+ <div class="square" style="border-width: 3px;"></div>
+ <br>
+ <div class="square" style="border-width: 3px;"></div>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-border-box-sizing-ref.html b/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-border-box-sizing-ref.html
new file mode 100644
index 0000000000..b2311d5ba0
--- /dev/null
+++ b/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-border-box-sizing-ref.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-width">
+<head>
+ <style>
+ .outer {
+ border: solid 1px black;
+ background: red;
+ width: 101px;
+ height: 101px;
+ margin: 5px;
+ padding: 0px;
+ box-sizing: border-box;
+ }
+ .inner {
+ background: lightgreen;
+ box-sizing: border-box;
+ padding: 0px;
+ }
+ #inner1 {
+ width: 99px;
+ height: 99px;
+ }
+ #inner2 {
+ width: 100%;
+ height: 100%;
+ }
+ </style>
+</head>
+<body>
+ <div class="outer">
+ <div class="inner" id="inner1"></div>
+ </div>
+
+ <div class="outer">
+ <div class="inner" id="inner2"></div>
+ </div>
+</body>
diff --git a/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-ref.html b/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-ref.html
new file mode 100644
index 0000000000..b8ce0e8348
--- /dev/null
+++ b/testing/web-platform/tests/css/css-borders/reference/subpixel-borders-with-child-ref.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-width">
+<head>
+ <style>
+ .outer {
+ border: solid 1px black;
+ background: red;
+ width: 100px;
+ height: 100px;
+ margin: 5px;
+ }
+ .inner {
+ background: lightgreen
+ }
+ #inner1 {
+ width: 100px;
+ height: 100px;
+ }
+ #inner2 {
+ width: 100%;
+ height: 100%;
+ }
+ </style>
+</head>
+<body>
+ <div class="outer">
+ <div class="inner" id="inner1"></div>
+ </div>
+
+ <div class="outer">
+ <div class="inner" id="inner2"></div>
+ </div>
+</body>