Skip to content
Snippets Groups Projects
Select Git revision
  • 114136799393c92ee2293473015fd6021383fcf5
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
24 results

digest_test.go

Blame
  • datasource.mjs 807 B
    /**
     * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
     * Node module: @schukai/monster
     * This file is licensed under the AGPLv3 License.
     * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
     */
    
    import { addAttributeToken } from "../../../dom/attributes.mjs";
    import { ATTRIBUTE_ERRORMESSAGE } from "../../../dom/constants.mjs";
    
    export { DatasourceStyleSheet };
    
    /**
     * @private
     * @type {CSSStyleSheet}
     */
    const DatasourceStyleSheet = new CSSStyleSheet();
    
    try {
    	DatasourceStyleSheet.insertRule(
    		`
    @layer datasource { 
    :host{display:none}:host(.intersection-observer){display:block;height:1px;overflow:hidden;width:1px} 
    }`,
    		0,
    	);
    } catch (e) {
    	addAttributeToken(
    		document.getRootNode().querySelector("html"),
    		ATTRIBUTE_ERRORMESSAGE,
    		e + "",
    	);
    }