From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../tests/css/css-values/urls/empty.html | 39 +++++++++++++++++++++ .../tests/css/css-values/urls/fragment-only.html | 40 ++++++++++++++++++++++ .../css-values/urls/resolve-relative-to-base.html | 35 +++++++++++++++++++ .../urls/resolve-relative-to-stylesheet.html | 33 ++++++++++++++++++ .../css/css-values/urls/support/empty-urls.css | 9 +++++ .../css-values/urls/support/fragment-only-urls.css | 19 ++++++++++ .../css/css-values/urls/support/relative-urls.css | 15 ++++++++ 7 files changed, 190 insertions(+) create mode 100644 testing/web-platform/tests/css/css-values/urls/empty.html create mode 100644 testing/web-platform/tests/css/css-values/urls/fragment-only.html create mode 100644 testing/web-platform/tests/css/css-values/urls/resolve-relative-to-base.html create mode 100644 testing/web-platform/tests/css/css-values/urls/resolve-relative-to-stylesheet.html create mode 100644 testing/web-platform/tests/css/css-values/urls/support/empty-urls.css create mode 100644 testing/web-platform/tests/css/css-values/urls/support/fragment-only-urls.css create mode 100644 testing/web-platform/tests/css/css-values/urls/support/relative-urls.css (limited to 'testing/web-platform/tests/css/css-values/urls') diff --git a/testing/web-platform/tests/css/css-values/urls/empty.html b/testing/web-platform/tests/css/css-values/urls/empty.html new file mode 100644 index 0000000000..3748567545 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/empty.html @@ -0,0 +1,39 @@ + +Empty URLs behaviour + + + + + + +
+
+
+
+ diff --git a/testing/web-platform/tests/css/css-values/urls/fragment-only.html b/testing/web-platform/tests/css/css-values/urls/fragment-only.html new file mode 100644 index 0000000000..a7153adf8f --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/fragment-only.html @@ -0,0 +1,40 @@ + +Fragment-on URLs behaviour + + + + + +
+
+
+
+
+ diff --git a/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-base.html b/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-base.html new file mode 100644 index 0000000000..bfbe127ab2 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-base.html @@ -0,0 +1,35 @@ + +URLs in embedded style sheets resolve relative to the document base URI + + + + + +
+
+ diff --git a/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-stylesheet.html b/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-stylesheet.html new file mode 100644 index 0000000000..1475d97052 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/resolve-relative-to-stylesheet.html @@ -0,0 +1,33 @@ + +URLs in a stylesheet resolve relative to the stylesheet + + + + +
+
+
+ + diff --git a/testing/web-platform/tests/css/css-values/urls/support/empty-urls.css b/testing/web-platform/tests/css/css-values/urls/support/empty-urls.css new file mode 100644 index 0000000000..0559e3b235 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/support/empty-urls.css @@ -0,0 +1,9 @@ +#external-unquoted { + background-image: url(); + cursor: url(), pointer; +} + +#external-quoted { + background-image: url(""); + cursor: url(""), pointer; +} diff --git a/testing/web-platform/tests/css/css-values/urls/support/fragment-only-urls.css b/testing/web-platform/tests/css/css-values/urls/support/fragment-only-urls.css new file mode 100644 index 0000000000..2c39a087e9 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/support/fragment-only-urls.css @@ -0,0 +1,19 @@ +:root { + --fragment-image-url: url("#foo"); + --fragment-cursor-url: url("#foo"), pointer; +} + +#external-unquoted { + background-image: url(#foo); + cursor: url(#foo), pointer; +} + +#external-quoted { + background-image: url("#foo"); + cursor: url("#foo"), pointer; +} + +#external-variable { + background-image: var(--fragment-image-url); + cursor: var(--fragment-cursor-url); +} diff --git a/testing/web-platform/tests/css/css-values/urls/support/relative-urls.css b/testing/web-platform/tests/css/css-values/urls/support/relative-urls.css new file mode 100644 index 0000000000..1354c655e9 --- /dev/null +++ b/testing/web-platform/tests/css/css-values/urls/support/relative-urls.css @@ -0,0 +1,15 @@ +:root { + --image-path-stylesheet: url("images/test.png"); +} + +#stylesheet-relative-image { + background-image: url(images/test.png); +} + +#stylesheet-relative-variable-image { + background-image: var(--image-path-stylesheet); +} + +#stylesheet-relative-document-variable-image { + background-image: var(--image-path-document); +} -- cgit v1.2.3