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

Unified Diff: third_party/WebKit/LayoutTests/svg/as-list-image/svg-list-image-intrinsic-size-zoom.html

Issue 1433503003: Avoid using ImageResource->imageSize() to get the marker size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Let imageBulletSize return IntSize Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutListMarker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/as-list-image/svg-list-image-intrinsic-size-zoom.html
diff --git a/third_party/WebKit/LayoutTests/svg/as-list-image/svg-list-image-intrinsic-size-zoom.html b/third_party/WebKit/LayoutTests/svg/as-list-image/svg-list-image-intrinsic-size-zoom.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e9f7f52702de7ef3cfa93015e75031167bd550b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/as-list-image/svg-list-image-intrinsic-size-zoom.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<title>Zoomed SVG in list-style-image</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+ ul { font-family: Ahem; }
+ ul li {
+ list-style-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'><rect width='1' height='1' fill='green'/></svg>");
+ font-size: 30px;
+ color: green;
+ list-style-position: inside;
+ line-height: 1em;
+ }
+</style>
+<ul><li></ul>
+<script>
+ var ul = document.querySelector('ul');
+ [ 2, 3, 4, 5, 1].forEach(function(zoom) {
+ test(function() {
+ document.body.style.zoom = zoom;
+ assert_approx_equals(ul.getBoundingClientRect().height, 30, 0.5);
+ }, 'Zoom to ' + zoom + " and list height should be equal to line-height");
+ });
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutListMarker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698