| Summary: | REGRESSION (r253875?): Element styles incorrect after media query evaluation changes | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | James Brooks <james.brooks> | ||||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, jer.noble, koivisto, philipj, sergio, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Safari 13 | ||||||||||
| Hardware: | Mac | ||||||||||
| OS: | macOS 10.15 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
James Brooks
2020-05-06 05:44:53 PDT
Can you attach the test case? Created attachment 398850 [details]
Basic recreation of the issue
I've attached a minimal reproduction similar to the video above - let me know if you need something more specific. I also spent a bit more time looking into the cause and it seems like the inclusion of a @keyframes rule inside of the media query is at fault in this example. This was a mistake on my part and moving the rule outside of the media query appears to result in the expected behaviour. I do still think there's a regression here though - in the first instance the @keyframes rule was in a different media query to the one where I had noticed the issue so it seems that this was causing issues with invalidating styles across the tree rather than just the query containing the @keyframes rule? And as I mentioned in the original report, this doesn't appear to have been an issue prior to Safari 13.1. Thanks for the repro. Interesting that it is triggered by an unused @keyframes rule inside @media. Agreed. Not been able to confirm if any other at-rules have the same outcome. I think I used an @supports rule in the repro which didn't seem to cause any problems? Created attachment 401141 [details]
patch
Committed r262618: <https://trac.webkit.org/changeset/262618> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401141 [details]. |