mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
LibWeb/CSS: Hyphenate request-url-modifier names
Corresponds to e1bf92d49a
Also update our imported WPT tests.
This commit is contained in:
parent
24f4356c3f
commit
5808eff1f4
Notes:
github-actions[bot]
2025-08-07 12:45:14 +00:00
Author: https://github.com/AtkinsSJ
Commit: 5808eff1f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5758
8 changed files with 137 additions and 131 deletions
|
@ -3049,17 +3049,17 @@ Optional<URL> Parser::parse_url_function(TokenStream<ComponentValue>& tokens)
|
|||
|
||||
// NB: Currently <request-url-modifier> is the only kind of <url-modifier>
|
||||
// https://drafts.csswg.org/css-values-5/#request-url-modifiers
|
||||
// <request-url-modifier> = <crossorigin-modifier> | <integrity-modifier> | <referrerpolicy-modifier>
|
||||
// <request-url-modifier> = <cross-origin-modifier> | <integrity-modifier> | <referrer-policy-modifier>
|
||||
Vector<RequestURLModifier> request_url_modifiers;
|
||||
// AD-HOC: This isn't mentioned in the spec, but WPT expects modifiers to be unique (one per type).
|
||||
// Spec issue: https://github.com/w3c/csswg-drafts/issues/12151
|
||||
while (url_tokens.has_next_token()) {
|
||||
auto& modifier_token = url_tokens.consume_a_token();
|
||||
if (modifier_token.is_function("crossorigin"sv)) {
|
||||
if (modifier_token.is_function("cross-origin"sv)) {
|
||||
// Reject duplicates
|
||||
if (request_url_modifiers.first_matching([](auto& modifier) { return modifier.type() == RequestURLModifier::Type::CrossOrigin; }).has_value())
|
||||
return {};
|
||||
// <crossorigin-modifier> = crossorigin(anonymous | use-credentials)
|
||||
// <cross-origin-modifier> = cross-origin(anonymous | use-credentials)
|
||||
TokenStream modifier_tokens { modifier_token.function().value };
|
||||
modifier_tokens.discard_whitespace();
|
||||
if (!modifier_tokens.next_token().is(Token::Type::Ident))
|
||||
|
@ -3085,12 +3085,12 @@ Optional<URL> Parser::parse_url_function(TokenStream<ComponentValue>& tokens)
|
|||
if (!maybe_string.is(Token::Type::String) || modifier_tokens.has_next_token())
|
||||
return {};
|
||||
request_url_modifiers.append(RequestURLModifier::create_integrity(maybe_string.token().string()));
|
||||
} else if (modifier_token.is_function("referrerpolicy"sv)) {
|
||||
} else if (modifier_token.is_function("referrer-policy"sv)) {
|
||||
// Reject duplicates
|
||||
if (request_url_modifiers.first_matching([](auto& modifier) { return modifier.type() == RequestURLModifier::Type::ReferrerPolicy; }).has_value())
|
||||
return {};
|
||||
|
||||
// <referrerpolicy-modifier> = (no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
// <referrer-policy-modifier> = (no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
TokenStream modifier_tokens { modifier_token.function().value };
|
||||
modifier_tokens.discard_whitespace();
|
||||
if (!modifier_tokens.next_token().is(Token::Type::Ident))
|
||||
|
|
|
@ -130,11 +130,11 @@ String RequestURLModifier::to_string() const
|
|||
{
|
||||
switch (m_type) {
|
||||
case Type::CrossOrigin:
|
||||
return MUST(String::formatted("crossorigin({})", CSS::to_string(m_value.get<CrossOriginModifierValue>())));
|
||||
return MUST(String::formatted("cross-origin({})", CSS::to_string(m_value.get<CrossOriginModifierValue>())));
|
||||
case Type::Integrity:
|
||||
return MUST(String::formatted("integrity({})", serialize_a_string(m_value.get<FlyString>())));
|
||||
case Type::ReferrerPolicy:
|
||||
return MUST(String::formatted("referrerpolicy({})", CSS::to_string(m_value.get<ReferrerPolicyModifierValue>())));
|
||||
return MUST(String::formatted("referrer-policy({})", CSS::to_string(m_value.get<ReferrerPolicyModifierValue>())));
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
|
@ -4,25 +4,25 @@ Found 23 tests
|
|||
|
||||
23 Pass
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png")'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(use-credentials))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(use-credentials))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity(""))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer-when-downgrade))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(same-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin-when-cross-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin-when-cross-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(unsafe-url))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") crossorigin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) referrerpolicy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer) crossorigin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar") crossorigin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer-when-downgrade))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(same-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin-when-cross-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin-when-cross-origin))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(unsafe-url))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") cross-origin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) referrer-policy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer) cross-origin(anonymous))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous) integrity("sha384-foobar"))'
|
||||
Pass Property background-image value 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar") cross-origin(anonymous))'
|
|
@ -1,17 +1,17 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 29 tests
|
||||
Found 31 tests
|
||||
|
||||
29 Pass
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin())" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(,anonymous))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous foobar))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous) cross-origin(anonymous))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous) cross-origin(use-credentials))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(crossorigin(anonymous) \"http://wpt.live:80/css/support/1x1-green.png\")" should not set the property value
|
||||
Pass e.style['background-image'] = "\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous)" should not set the property value
|
||||
31 Pass
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin())" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(,anonymous))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous foobar))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous) cross-origin(anonymous))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous) cross-origin(use-credentials))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(cross-origin(anonymous) \"http://wpt.live:80/css/support/1x1-green.png\")" should not set the property value
|
||||
Pass e.style['background-image'] = "\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous)" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity())" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\",))" should not set the property value
|
||||
|
@ -22,13 +22,15 @@ Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-gre
|
|||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") integrity(\"sha384-barbaz\"))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(integrity(\"sha384-foobar\") \"http://wpt.live:80/css/support/1x1-green.png\")" should not set the property value
|
||||
Pass e.style['background-image'] = "\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\")" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy())" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(,no-referrer))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer foobar))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer same-origin))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) referrerpolicy(no-referrer))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) referrerpolicy(same-origin))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(referrerpolicy(no-referrer) \"http://wpt.live:80/css/support/1x1-green.png\")" should not set the property value
|
||||
Pass e.style['background-image'] = "\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer)" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy())" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer,))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(,no-referrer))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer foobar))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer same-origin))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) referrer-policy(no-referrer))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) referrer-policy(same-origin))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(referrer-policy(no-referrer) \"http://wpt.live:80/css/support/1x1-green.png\")" should not set the property value
|
||||
Pass e.style['background-image'] = "\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer)" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous))" should not set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer))" should not set the property value
|
|
@ -4,25 +4,25 @@ Found 23 tests
|
|||
|
||||
23 Pass
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\")" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(use-credentials))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(use-credentials))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer-when-downgrade))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(same-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(strict-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(origin-when-cross-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(strict-origin-when-cross-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(unsafe-url))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") crossorigin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") referrerpolicy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous) referrerpolicy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) crossorigin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" crossorigin(anonymous) integrity(\"sha384-foobar\") referrerpolicy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") referrerpolicy(no-referrer) crossorigin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) crossorigin(anonymous) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrerpolicy(no-referrer) integrity(\"sha384-foobar\") crossorigin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer-when-downgrade))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(same-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(strict-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(origin-when-cross-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(strict-origin-when-cross-origin))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(unsafe-url))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") cross-origin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") referrer-policy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous) referrer-policy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) cross-origin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" cross-origin(anonymous) integrity(\"sha384-foobar\") referrer-policy(no-referrer))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" integrity(\"sha384-foobar\") referrer-policy(no-referrer) cross-origin(anonymous))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) cross-origin(anonymous) integrity(\"sha384-foobar\"))" should set the property value
|
||||
Pass e.style['background-image'] = "url(\"http://wpt.live:80/css/support/1x1-green.png\" referrer-policy(no-referrer) integrity(\"sha384-foobar\") cross-origin(anonymous))" should set the property value
|
|
@ -12,34 +12,34 @@
|
|||
// No modifiers
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png")');
|
||||
|
||||
// <crossorigin-modifier> = crossorigin(anonymous | use-credentials)
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(use-credentials))');
|
||||
// <cross-origin-modifier> = cross-origin(anonymous | use-credentials)
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(use-credentials))');
|
||||
|
||||
// <integrity-modifier> = integrity(<string>)
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar"))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity(""))');
|
||||
|
||||
// <referrerpolicy-modifier> = referrerpolicy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer-when-downgrade))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(same-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin-when-cross-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin-when-cross-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(unsafe-url))');
|
||||
// <referrer-policy-modifier> = referrer-policy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer-when-downgrade))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(same-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin-when-cross-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin-when-cross-origin))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(unsafe-url))');
|
||||
|
||||
// Multiple modifiers
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar"))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar"))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer) crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar") crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar"))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar"))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer) cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_computed_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar") cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -6,15 +6,15 @@
|
|||
<script src="../../../css/support/parsing-testcommon.js"></script>
|
||||
<script>
|
||||
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin())');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(,anonymous))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous foobar))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) cross-origin(anonymous))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) cross-origin(use-credentials))');
|
||||
test_invalid_value('background-image', 'url(crossorigin(anonymous) "http://wpt.live:80/css/support/1x1-green.png")');
|
||||
test_invalid_value('background-image', '"http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous)');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin())');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(,anonymous))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous foobar))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) cross-origin(anonymous))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) cross-origin(use-credentials))');
|
||||
test_invalid_value('background-image', 'url(cross-origin(anonymous) "http://wpt.live:80/css/support/1x1-green.png")');
|
||||
test_invalid_value('background-image', '"http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous)');
|
||||
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity())');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity(,))');
|
||||
|
@ -27,15 +27,19 @@ test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-
|
|||
test_invalid_value('background-image', 'url(integrity("sha384-foobar") "http://wpt.live:80/css/support/1x1-green.png")');
|
||||
test_invalid_value('background-image', '"http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar")');
|
||||
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy())');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(,no-referrer))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer foobar))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer same-origin))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) referrerpolicy(no-referrer))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) referrerpolicy(same-origin))');
|
||||
test_invalid_value('background-image', 'url(referrerpolicy(no-referrer) "http://wpt.live:80/css/support/1x1-green.png")');
|
||||
test_invalid_value('background-image', '"http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer)');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy())');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer,))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(,no-referrer))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer foobar))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer same-origin))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) referrer-policy(no-referrer))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) referrer-policy(same-origin))');
|
||||
test_invalid_value('background-image', 'url(referrer-policy(no-referrer) "http://wpt.live:80/css/support/1x1-green.png")');
|
||||
test_invalid_value('background-image', '"http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer)');
|
||||
|
||||
// Test outdated names.
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous))');
|
||||
test_invalid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer))');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -10,34 +10,34 @@
|
|||
// No modifiers
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png")');
|
||||
|
||||
// <crossorigin-modifier> = crossorigin(anonymous | use-credentials)
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(use-credentials))');
|
||||
// <cross-origin-modifier> = cross-origin(anonymous | use-credentials)
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(use-credentials))');
|
||||
|
||||
// <integrity-modifier> = integrity(<string>)
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar"))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity(""))');
|
||||
|
||||
// <referrerpolicy-modifier> = referrerpolicy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer-when-downgrade))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(same-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(origin-when-cross-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(strict-origin-when-cross-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(unsafe-url))');
|
||||
// <referrer-policy-modifier> = referrer-policy(no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url)
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer-when-downgrade))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(same-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(origin-when-cross-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(strict-origin-when-cross-origin))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(unsafe-url))');
|
||||
|
||||
// Multiple modifiers
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar"))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar"))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrerpolicy(no-referrer) crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) crossorigin(anonymous) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrerpolicy(no-referrer) integrity("sha384-foobar") crossorigin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" crossorigin(anonymous) integrity("sha384-foobar") referrerpolicy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar"))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar"))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" integrity("sha384-foobar") referrer-policy(no-referrer) cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) cross-origin(anonymous) integrity("sha384-foobar"))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
test_valid_value('background-image', 'url("http://wpt.live:80/css/support/1x1-green.png" referrer-policy(no-referrer) integrity("sha384-foobar") cross-origin(anonymous))', 'url("http://wpt.live:80/css/support/1x1-green.png" cross-origin(anonymous) integrity("sha384-foobar") referrer-policy(no-referrer))');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue