From 8ae39557c010c28036e0f5152391a2251a0da3a2 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 4 Jan 2018 17:48:55 -0800 Subject: [PATCH] Allow adding type="custom" to avoid deprecation warning. Fixes #5017 --- src/lib/custom-style.html | 5 +++++ test/unit/custom-style-import.html | 2 +- test/unit/custom-style.html | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/custom-style.html b/src/lib/custom-style.html index 0d750eac18..80c3e10925 100644 --- a/src/lib/custom-style.html +++ b/src/lib/custom-style.html @@ -134,6 +134,11 @@ cases of ordering w.r.t the main document styles. */ if (this.ownerDocument !== window.document && this.__appliedElement === this) { + // Allow users to add `type="custom"` to