abishekatp / stylers

Fully compile time scoped CSS for Leptos components
MIT License
139 stars 13 forks source link

Mishandling of the parentheses in :deep #51

Open svieujot opened 1 year ago

svieujot commented 1 year ago

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 commented 1 year ago

@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.