diff --git a/application/source/dom/dimension.mjs b/application/source/dom/dimension.mjs
index 5148e754d49061844c8021381db2256226fed6e8..cd9b35699f059be5a314f715600a629e3f415c1e 100644
--- a/application/source/dom/dimension.mjs
+++ b/application/source/dom/dimension.mjs
@@ -6,6 +6,7 @@
  */
 
 import { getWindow } from "./util.mjs";
+import { validateString } from "../types/validate.mjs";
 
 export { convertToPixels, getDeviceDPI };
 
@@ -74,6 +75,10 @@ function getDeviceDPI() {
  */
 
 function convertToPixels(value, parentElement = document.documentElement, fontSizeElement = document.documentElement) {
+    
+    validateString(value);
+    
+    
     const regex = /^(-?[\d.]+)(.*)$/;
     const matchResult = value.match(regex);