Home / File/ _config.js — svelte Source File

_config.js — svelte Source File

Architecture documentation for _config.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  c39af67b_86cf_0f5c_d015_26febb7d02cb["_config.js"]
  2a2d28a9_d1e5_6b47_9375_279552e7c7f8["assert.js"]
  c39af67b_86cf_0f5c_d015_26febb7d02cb --> 2a2d28a9_d1e5_6b47_9375_279552e7c7f8
  f4a0c661_f2f9_0ec6_e74c_ee5f896de9fe["assert_ok"]
  c39af67b_86cf_0f5c_d015_26febb7d02cb --> f4a0c661_f2f9_0ec6_e74c_ee5f896de9fe
  07d76165_84db_aa3e_f8fc_c7c9c3a10163["test"]
  c39af67b_86cf_0f5c_d015_26febb7d02cb --> 07d76165_84db_aa3e_f8fc_c7c9c3a10163
  style c39af67b_86cf_0f5c_d015_26febb7d02cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { assert_ok, test } from '../../assert';

export default test({
	html: `
		<p style="font-size: 32px; color: red; background-color: green; border-color: green;"></p>
	`,

	test({ assert, target, window, component }) {
		const p = target.querySelector('p');
		assert_ok(p);
		const styles = window.getComputedStyle(p);
		assert.equal(styles.color, 'rgb(255, 0, 0)');
		assert.equal(styles.fontSize, '32px');
		assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
		assert.equal(styles.borderColor, 'rgb(0, 128, 0)');

		component.foo = 'font-size: 50px; color: green;'; // Update style attribute
		{
			const p = target.querySelector('p');
			assert_ok(p);
			const styles = window.getComputedStyle(p);
			assert.equal(styles.color, 'rgb(255, 0, 0)');
			assert.equal(styles.fontSize, '32px');
			assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
			assert.equal(styles.borderColor, 'rgb(0, 128, 0)');
		}
	}
});

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does _config.js do?
_config.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, MessageProcessor subdomain.
What functions are defined in _config.js?
_config.js defines 1 function(s): default.test.
What does _config.js depend on?
_config.js imports 3 module(s): assert.js, assert_ok, test.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-browser/samples/inline-style-directive-precedence/_config.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/runtime-browser/samples/inline-style-directive-precedence).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free