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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-set-border-image-button.html

Issue 1901103002: Compensate for source scaling in hidpi mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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: third_party/WebKit/LayoutTests/fast/hidpi/image-set-border-image-button.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/image-set-border-image-button.html b/third_party/WebKit/LayoutTests/fast/hidpi/image-set-border-image-button.html
new file mode 100644
index 0000000000000000000000000000000000000000..0fcceedfcb7bef5f8e57536a9230835c0d20d4c3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/image-set-border-image-button.html
@@ -0,0 +1,19 @@
+<title>border-image with border-image-repeat in hidpi setting</title>
fs 2016/04/19 14:59:34 Nit: Doctype? (I'm guessing this doesn't need quir
davve 2016/04/20 07:40:18 Doh! I copied another test in the directory to st
+<script src="resources/srcset-helper.js"></script>
+<!-- Mimicking hidpi border-image features from buttons in
+ ui/webui/resources/css/apps/common.css -->
+<style>
+div {
+ border-image-source: -webkit-image-set(
+ url(resources/black-blue-outline-6-px-square.png) 1x,
+ url(resources/black-blue-outline-12-px-square.png) 2x);
+ border-image-slice: 2 fill;
+ border-image-width: 2px;
+ border-image-repeat: repeat;
+ width: 100px;
+ height: 20px;
+ border-width: 2px;
+ border-style: solid;
+}
+</style>
+<div></div>

Powered by Google App Engine
This is Rietveld 408576698