Home / File/ expected.css — svelte Source File

expected.css — svelte Source File

Architecture documentation for expected.css, a css file in the svelte codebase.

Entity Profile

Source Code


	/* :global {*/
		.x {
			color: green;
		}

		.a, .selector, .list {
			color: green;
		}
	/*}*/

	div.svelte-xyz {
		.y {
			color: green;
		}
	}

	/* some css preprocessors de-nest :global blocks with a single child
	   (e.g turn `:global { div { ... } }` into `:global div { ... }`),
	   so we need to support it, too */
	 div {
		.y {
			color: green;
		}
	}

	div.svelte-xyz p {
		.y {
			color: green;
		}
	}

	/* `div { :global { &.x { ...} } }` is allowed ... */
	div.svelte-xyz {
		/* :global {*/
			&.x {
				color: green;
			}
		/*}*/
	}

	/* ...which is equivalent to `div :global { &.x { ...} }` ... */
	div.svelte-xyz {
		&.x {
			color: green;
		}
	}

	/* ...so `div :global.x` must be, too ... */
	div.svelte-xyz.x {
		color: green;
	}

	/* ...and therefore `div { :global.x { ... }` as well */
	div.svelte-xyz {
		&.x {
			color: green;
		}
	}

	div.svelte-xyz {
		&.x {
			color: green;
		}
	}

	div.svelte-xyz:is(html.dark-mode *) {
		color: green;
	}

	/* (unused) .unused :global {
		.z {
			color: red;
		}
	}*/
	/* :global{*/
		.x{
			animation: svelte-xyz-test 1s;
		}

		.y{
			animation: test-in 1s;
		}

		@keyframes test-in{
			to{
				opacity: 1;
			}
		}
	/*}*/

	@keyframes svelte-xyz-test{
		to{
			opacity: 1;
		}
	}

	 x,  y {
		color: green;
	}

	div.svelte-xyz, div.svelte-xyz y /* (unused) unused*/ {
		z {
			color: green;
		}
	}

Frequently Asked Questions

What does expected.css do?
expected.css is a source file in the svelte codebase, written in css.
Where is expected.css in the architecture?
expected.css is located at packages/svelte/tests/css/samples/global-block/expected.css (directory: packages/svelte/tests/css/samples/global-block).

Analyze Your Own Codebase

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

Try Supermodel Free