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

Mishandling of the parentheses in :deep #51

Open
svieujot opened this issue Oct 15, 2023 · 1 comment
Open

Mishandling of the parentheses in :deep #51

svieujot opened this issue Oct 15, 2023 · 1 comment

Comments

@svieujot
Copy link
Contributor

Here is the matching test:

#[test]
fn test_56() {
    let style = style_test! {
        .fullData :deep(dl.alarm:has(dd.true) dt) {
            color: var(--bs-danger);
        }
    };
    assert_eq!(
        style,
        r#".fullData.test dl.alarm:has(dd.true) dt{color: var(--bs-danger);}"#
    );
}
@abishekatp
Copy link
Owner

@svieujot I will try to debug an fix this issue(but it may take some time). If you are interested you can also try it.

Either we have to fix this issue directly by changing some logics in this function or we can try to figure out more consistent solution for parsing the selector.

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

No branches or pull requests

2 participants