From f10c151a28f2a311a9ef638ed0424ffb08768b4b Mon Sep 17 00:00:00 2001 From: Ruben Stolk Date: Sun, 28 May 2017 12:13:30 +0200 Subject: [PATCH] Allow passing through of crossorigin attribute --- iron-image.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/iron-image.html b/iron-image.html index 3390eb5..3f6cb67 100644 --- a/iron-image.html +++ b/iron-image.html @@ -130,8 +130,12 @@ hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]"> - +
@@ -158,6 +162,14 @@ value: null }, + /** + * CORS enabled images support: https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image + */ + crossorigin: { + type: String, + value: null + }, + /** * When true, the image is prevented from loading and any placeholder is * shown. This may be useful when a binding to the src property is known to