Automatic update from web-platform-tests
Invalidate SVG transform when offset-path referenced geometry changes
SVGElementResourceClient::ResourceContentChanged() didn't mark the
target as needing a transform update.
Bug: 485900033
Change-Id: Id0f770e4d1c65b5c860ffa6cdbc6bd8d5d4b8322
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7604092
Reviewed-by: Divyansh Mangal <dmangal@microsoft.com>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/main@{#1589457}
--
wpt-commits: 77daeddd48046dc005e93173ed758d38ddf2dd37
wpt-pr: 58014
25 lines
806 B
HTML
25 lines
806 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<title>offset-path url() referenced path mutation</title>
|
|
<link rel="help" href="https://drafts.csswg.org/motion/#valdef-offset-path-url">
|
|
<link rel="help" href="https://crbug.com/485900033">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
|
<style>
|
|
svg > rect {
|
|
offset-path: url(#target);
|
|
offset-distance: 50%;
|
|
offset-rotate: 0deg;
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square.</p>
|
|
<svg>
|
|
<path id="target" d="M150,0h-100"/>
|
|
<rect x="50" width="100" height="100" fill="green"/>
|
|
</svg>
|
|
<script>
|
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
document.getElementById("target").setAttribute("d", "M100,0h-300");
|
|
document.documentElement.removeAttribute('class');
|
|
}));
|
|
</script>
|