styleChecker.js 532 B

123456789101112131415
  1. import { aX as n } from "./index2.js";
  2. const d = () => n() && window.document.documentElement;
  3. let t;
  4. const l = () => {
  5. if (!d())
  6. return !1;
  7. if (t !== void 0)
  8. return t;
  9. const e = document.createElement("div");
  10. return e.style.display = "flex", e.style.flexDirection = "column", e.style.rowGap = "1px", e.appendChild(document.createElement("div")), e.appendChild(document.createElement("div")), document.body.appendChild(e), t = e.scrollHeight === 1, document.body.removeChild(e), t;
  11. };
  12. export {
  13. d as c,
  14. l as d
  15. };