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

Multiple attribute selectors in IE 11 not working #287

Open
leevking opened this issue Jan 22, 2020 · 2 comments
Open

Multiple attribute selectors in IE 11 not working #287

leevking opened this issue Jan 22, 2020 · 2 comments

Comments

@leevking
Copy link

leevking commented Jan 22, 2020

Hi, I met some problems using min-width and min-height selectors simultaneously. Here is the peace of code.

@for $i from 0 through 11 {
    $x: $i * 25;
    
    section[min-height~="#{($x + 100) * 1px}"][min-width~="#{($x) * 1px}"] {

            border-width: $i * 1px;
            border-top: none;

            header {
                font-size: round($i * 2.2) * 1px + 8px;
                padding: $i * 1px + 4px;
            }
    }
}

This works fine in Chrome and Mozilla but in IE 11 seems to have some problems. It takes only the last selector (min-width in this case) and transforms to something like this(image below). Any ideas whats wrong or how to fix this?

I am using css-element-queries v1.2.2

image

@marcj
Copy link
Owner

marcj commented Feb 13, 2020

What is the actual generated CSS? Please post the plain css here. If you can provide a JSFiddle/Stackblitz or something what would be even greater.

@leevking
Copy link
Author

leevking commented Mar 17, 2020

Hi, sorry for a long response, just got time to create a reproduction.
In this demo div blocks should react to both width and height (simultaneously) change and change font-size depending on its values.

https://stackblitz.com/edit/css-element-queries-edge-test

Tried this at Microsoft Edge (I haven`t updated it yet), still not working. But in Mozilla everything works as expected. Check this out please.

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