Skip to content

Commit

Permalink
Bug 1628478 [wpt PR 22796] - [css-filters] Migrate effect-reference-i…
Browse files Browse the repository at this point in the history
…mage-lazy-attach.html to WPT, a=testonly

Automatic update from web-platform-tests
[css-filters] Migrate effect-reference-image-lazy-attach.html to WPT

CL adds <title>, <link>s and <meta name=assert> entries to the
original test, and moves it to external/wpt/css/filter-effects/.

Target location/name:
external/wpt/css/filter-effects/effect-reference-feimage-003.html

Associated TestExpectations entries are also updated.

BUG=968791,1063749
[email protected]

Change-Id: Ie2a49760e32642613757272db97745fb3994dd24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2141350
Commit-Queue: Antonio Gomes <[email protected]>
Reviewed-by: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#757802}

--

wpt-commits: 73ae1a35dabb465effe263503ba081d5abe4c4de
wpt-pr: 22796
  • Loading branch information
tonikitoo authored and moz-wptsync-bot committed Apr 13, 2020
1 parent cd22960 commit 218fdb2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<title>CSS Filters: feImage and CSS reference filters.</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#feImageElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="match" href="reference/effect-reference-feimage-003-ref.html">
<meta name="assert" content="This test ensures that CSS reference filters support a dynamically attached feImage."/>
<body>

<style>
#filtered {
width: 160px;
height: 90px;
filter: url(#imagereplace);
}
</style>

<script type="text/html" id="source">
<div id="filtered"></div>
<svg width="0" height="0">
<filter id="imagereplace" x="0%" y="0" width="100%" height="100%">
<feimage xlink:href="support/color-palette.png"/>
</filter>
</svg>
</script>

<script>
document.body.offsetLeft;
var div = document.createElement('div');
div.innerHTML = document.getElementById('source').textContent;
document.body.appendChild(div);
</script>

</body>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<img src="../support/color-palette.png">

0 comments on commit 218fdb2

Please sign in to comment.