From 337832fde4eb82357b3ffabb121c03dfccb141fe Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sat, 25 Jul 2015 15:38:49 -0700 Subject: [PATCH] Check if naturalWidth / naturalHeight works w/ DPR $ ./mach run --device-pixel-ratio=1 tests/html/get-natural-height.html ALERT: width: 600, height: 254 $ ./mach run --device-pixel-ratio=2 tests/html/get-natural-height.html ALERT: width: 600, height: 254 $ ./mach run --device-pixel-ratio=.5 tests/html/get-natural-height.html ALERT: width: 600, height: 254 It doesn't. Answers #6769. --- tests/html/get-natural-height.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/html/get-natural-height.html diff --git a/tests/html/get-natural-height.html b/tests/html/get-natural-height.html new file mode 100644 index 00000000000..43e427dfeab --- /dev/null +++ b/tests/html/get-natural-height.html @@ -0,0 +1,24 @@ + + + + + + + +
+ + +