UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

24 lines (21 loc) 725 B
export default function () { var combinator = void 0; // see https://dev.w3.org/csswg/css-scoping-1/#deep-combinator // https://bugzilla.mozilla.org/show_bug.cgi?id=1117572 // https://code.google.com/p/chromium/issues/detail?id=446051 try { document.querySelector('html >>> :first-child'); combinator = '>>>'; } catch (noArrowArrowArrow) { try { // old syntax supported at least up to Chrome 41 // https://code.google.com/p/chromium/issues/detail?id=446051 document.querySelector('html /deep/ :first-child'); combinator = '/deep/'; } catch (noDeep) { combinator = ''; } } return combinator; } //# sourceMappingURL=css-shadow-piercing-deep-combinator.js.map