Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: LayoutTests/svg/custom/svg-image-par-none-viewbox-percentage-size.html

Issue 713263002: Use the viewBox when scaling <svg:image>s non-uniformly w/ pAR=none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: The computeImageViewportSize approach. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/custom/svg-image-par-none-viewbox-percentage-size.html
diff --git a/LayoutTests/svg/custom/svg-image-par-none-no-intrinsic-size.html b/LayoutTests/svg/custom/svg-image-par-none-viewbox-percentage-size.html
similarity index 63%
copy from LayoutTests/svg/custom/svg-image-par-none-no-intrinsic-size.html
copy to LayoutTests/svg/custom/svg-image-par-none-viewbox-percentage-size.html
index 865c97ad20b1b629f52605b784145fc65b5c6e3f..59f95e8626fe08860296ce18cd653e88bb9d9a41 100644
--- a/LayoutTests/svg/custom/svg-image-par-none-no-intrinsic-size.html
+++ b/LayoutTests/svg/custom/svg-image-par-none-viewbox-percentage-size.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<svg width="100" height="200" style="background-color: red">
<image width="100" height="200" preserveAspectRatio="none"
- xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'><rect width='100' height='200' fill='green'/></svg>"/>
+ xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='50%' height='50%' viewBox='0 0 100 100'><rect width='100' height='100' fill='green'/></svg>"/>
</svg>

Powered by Google App Engine
This is Rietveld 408576698