diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-properties-values-api/support')
5 files changed, 62 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.css b/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.css new file mode 100644 index 0000000000..aeb6ad5abe --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.css @@ -0,0 +1,4 @@ +#target { + --reg-alt-non-inherited-url: url(foo.jpg); + --reg-alt-non-inherited-func: url("foo.jpg"); +} diff --git a/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.js b/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.js new file mode 100644 index 0000000000..f25e18beeb --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/support/alt/alt.js @@ -0,0 +1,11 @@ +function reg_url(name, inherits) { + CSS.registerProperty({ + name: name, + syntax: '<url> | none', + inherits: inherits, + initialValue: 'none' + }); +} + +reg_url('--reg-alt-non-inherited-url', false); +reg_url('--reg-alt-non-inherited-func', false); diff --git a/testing/web-platform/tests/css/css-properties-values-api/support/main/main.css b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.css new file mode 100644 index 0000000000..6b81abdee7 --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.css @@ -0,0 +1,22 @@ +#target { + --unreg-url: url(foo.jpg); + --unreg-func: url("foo.jpg"); + + --reg-inherited-url: url(foo.jpg); + --reg-non-inherited-url: url(foo.jpg); + + --reg-inherited-func: url("foo.jpg"); + --reg-non-inherited-func: url("foo.jpg"); + + --reg-ref-to-unreg-url: var(--unreg-url); + --reg-ref-to-unreg-func: var(--unreg-func); + + --reg-ref-to-reg-url: var(--reg-alt-non-inherited-url); + --reg-ref-to-reg-func: var(--reg-alt-non-inherited-func); + + --unreg-ref-to-reg-url: var(--reg-alt-non-inherited-url); + --unreg-ref-to-reg-func: var(--reg-alt-non-inherited-func); + + --unreg-multi-ref-to-reg-urls: var(--reg-non-inherited-url), var(--reg-alt-non-inherited-url); + --unreg-multi-ref-to-reg-funcs: var(--reg-non-inherited-func), var(--reg-alt-non-inherited-func); +} diff --git a/testing/web-platform/tests/css/css-properties-values-api/support/main/main.js b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.js new file mode 100644 index 0000000000..169ed7b53c --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.js @@ -0,0 +1,25 @@ +function reg_url(name, inherits) { + CSS.registerProperty({ + name: name, + syntax: '<url> | none', + inherits: inherits, + initialValue: 'none' + }); +} + +reg_url('--reg-non-inherited-url', false); +reg_url('--reg-non-inherited-func', false); + +reg_url('--reg-inherited-url', true); +reg_url('--reg-inherited-func', true); + +reg_url('--reg-ref-to-unreg-url', false); +reg_url('--reg-ref-to-unreg-func', false); + +reg_url('--reg-ref-to-reg-url', false); +reg_url('--reg-ref-to-reg-func', false); + +reg_url('--reg-merged-func', false); + +reg_url('--reg-utf16be-url', false); +reg_url('--reg-utf16be-func', false); diff --git a/testing/web-platform/tests/css/css-properties-values-api/support/main/main.utf16be.css b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.utf16be.css Binary files differnew file mode 100644 index 0000000000..26485da32b --- /dev/null +++ b/testing/web-platform/tests/css/css-properties-values-api/support/main/main.utf16be.css |