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
L2 optimization drops some new css styles #1124
Comments
@vladmandic Can you please include more details, like a bigger CSS snippet? It's rather not possible clean-css removes |
i cannot see any redefinition of that style. actual css can is at https://github.com/vladmandic/pigallery/blob/master/client/pigallery.css modifying
and resulting modifying
and resulting |
Thanks @vladmandic I'll check why it happens. |
So it's a bug in restructuring. |
On the second thought it may not be, as here's the output from both clean-css 4.2 and main branch (soon 5.0). You can see .divider,
.listitem {
scroll-snap-align: start
} at the beginning and then .listitem {
display: flex;
scroll-margin-top: 0;
content-visibility: auto
} further down (note: I have formatted output of both). Could you please check which version of clean-css are you running? |
@jakubpawlowicz i'm running clean-css 4.2.3 i've tested again and yes, the rule is correct but split into two separate rules. for some reason, it all works now - i know it didn't use to work with older chrome when i opened this issue 4 months ago. thanks. |
Cool, I'm glad it works fine now. Please reopen if needed, and sorry it took me a while to have a look at it. |
Like the subject line says...
Note that
content-visibility
is a new style included in latest versions of browsers.Input CSS
Actual output CSS
incorrect with 2: { all: true }
Expected output CSS
correct with 2: { all: false }
The text was updated successfully, but these errors were encountered: