UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

9 lines (8 loc) 929 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./canUseDOM.js"),a=o=>{if(!c.canUseDOM)return!1;const e=o?o.ownerDocument:document;if(!e||!e.body)return!1;const i=10,n=e.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)";const t=e.createElement("div");t.appendChild(e.createTextNode("child")),t.style.position="fixed",t.style.top=i+"px",n.appendChild(t),e.body.appendChild(n);const r=t.getBoundingClientRect().top!==i;return e.body.removeChild(n),r};exports.hasRelativeStackingContext=a;