[go: up one dir, main page]

Skip to content

Commit

Permalink
A 'transform-box' change can yield a different transform
Browse files Browse the repository at this point in the history
We wouldn't invalidate as needed if the 'transform-box' property changed
its value.

Bug: 595829
Change-Id: Ibcaa9e94b54b99724f2d3e1ca5dedd868d85b776
Reviewed-on: https://chromium-review.googlesource.com/796213
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#520211}
  • Loading branch information
Fredrik Söderquist authored and chromium-wpt-export-bot committed Nov 29, 2017
1 parent 5fd2416 commit 156db88
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions css/css-transforms/transform-box/value-changed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html class="reftest-wait">
<title>transform-box: value change from 'view-box' to 'fill-box'</title>
<link rel="match" href="support/greensquare200x200.html">
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box">
<p>There should be a green 200x200 rectangle below, and no red.</p>
<svg width="400" height="200">
<rect width="200" height="200" fill="red"/>
<rect id="target" x="100" width="200" height="200" fill="green"
style="transform-box: view-box; transform: translateX(-50%)"/>
</svg>
<script>
requestAnimationFrame(function() {
requestAnimationFrame(function() {
document.querySelector('#target').style.transformBox = 'fill-box';
document.documentElement.classList.remove('reftest-wait');
});
});
</script>

0 comments on commit 156db88

Please sign in to comment.