Commit 7bcf733d authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

[css-filters] Migrate effect-reference-external-stylesheet to WPT

Migrate this test out of third_party/blink/web_tests/css3/filters/ and
into the WPT-specific directory, adding links to the relevant specs and
a test assertion describing its purpose.

Additionally, rename svg-relative-urls-0001.html to
svg-relative-urls-001.html, and add this test as a second test for the
same use case.

Bug: 1063749
Change-Id: Ifc0a6abfa45a6e6ad16f08388210ddcb0286142a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135755Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#757744}
parent e7582c3e
<!DOCTYPE html>
<link rel="stylesheet" href="resources/filters.css"
onload="document.body && document.body.offsetTop">
<style>
img {
margin: 10px;
}
</style>
<img class="huerotate180" src="resources/reference.png">
......@@ -4,4 +4,4 @@ img {
margin: 10px;
}
</style>
<img style="filter: url(resources/hueRotate.svg#MyFilter)" src="resources/reference.png">
<img style="filter: url(../support/hueRotate.svg#MyFilter)" src="../support/color-palette.png">
......@@ -4,7 +4,7 @@
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://drafts.csswg.org/css-values-4/#relative-urls">
<link rel="help" href="https://crbug.com/405315"/>
<link rel="match" href="reference/svg-relative-urls-0001-ref.html">
<link rel="match" href="reference/svg-relative-urls-001-ref.html">
<meta name="assert" content="This test checks that relative SVG filter references in inline styles are correct after an element moves documents.">
<body onload="runTest()">
......
<!DOCTYPE html>
<title>SVG Filters: relative URLs from external stylesheets</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.csswg.org/css-values-4/#relative-urls">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=405315">
<link rel="match" href="reference/svg-relative-urls-002-ref.html">
<meta name="assert" content="Check that SVG filters can be referenced from external stylesheets using a relative URL">
<link rel="stylesheet" href="support/filter-from-external-url.css"
onload="document.body && document.body.offsetTop">
<style>
img {
margin: 10px;
}
</style>
<img class="hue-rotate" src="support/color-palette.png">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment