Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental feature: container queries #891

Merged
merged 3 commits into from Apr 25, 2024
Merged

Conversation

haikyuu
Copy link
Collaborator

@haikyuu haikyuu commented Apr 24, 2024

Syntax is currently: @c-article230, c@c-article!20

Here is a complete example:

tag my-app
	<self>
		<div[w:100px container:article / inline-size]>
			css
				span @c-article39 c:red4 fs:111cqw
			<span[d@300:block]> "I should be red"

imba.mount <my-app>

Note that the container query units are available cqw is container query width. + cqh, cqi inline-size and cqb for block-size.

@haikyuu haikyuu self-assigned this Apr 24, 2024
@somebee
Copy link
Member

somebee commented Apr 25, 2024

Merging it in to continue work on the syntax in the main branch. Thanks :)

@somebee somebee merged commit 800edd7 into master Apr 25, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants