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

feat: Using_media_queries #608

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

feat: Using_media_queries #608

wants to merge 3 commits into from

Conversation

yifei8
Copy link
Member

@yifei8 yifei8 commented May 8, 2024

support @media

  • @media only screen and (max-width: xxxpx) and (min-width: xxxpx)
  • @media only screen and (prefers-color-scheme: dark)
  • add test case

@yifei8 yifei8 changed the title feat: https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_media_queries/Using_media_queries feat: Using_media_queries May 8, 2024
List<CSSRule>? rule = processRule();
if (rule != null) {
rules.addAll(rule);
}
Copy link
Contributor

@looseyi looseyi May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are two case, will cause infinity processRule

@media only screen and (min-width:768px) {
    .button.active:not(.inactive),
    .button:active:not(.inactive, [disabled]) {
        --button-bg: red;
    }

    .button:active:not(.inactive, [disabled]) {
        --button-bg: red
    }
}

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