| Summary: | REGRESSION (r276882): Shadow trees may use stale style information after inline stylesheet is mutated via CSSOM | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Thomas Ladd <thomas.rye.ladd> | ||||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Major | CC: | ap, koivisto, rniwa, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Safari Technology Preview | ||||||||||
| Hardware: | iPhone / iPad | ||||||||||
| OS: | Other | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Thomas Ladd
2021-08-09 10:04:51 PDT
Could you please clarify if this works on any earlier iOS version? The issue does not occur on iOS 14. It does occur on iOS 15 release 3 and release 4 for sure; I'm not sure about release 1 and 2 because I only started testing the beta when release 3 was the latest. Is there any way I could get some visibility onto whether this is likely to be looked at and addressed prior to iOS 15 being released? Just wondering at this point if I need to start planning for that to occur or not. Can provide a reduction URL that doesn't involve installation steps (jsfiddle for example)? https://www.orwhateveryoudo.com/ has an example of it occurring in the wild (where the attached video is recorded) if that works. The app itself is quite a bit bigger and the page has quite a bit more going on than the reproduction repo which I tried to make more minimal. I can try to make something in a jsfiddle too if that doesn't work. Regression from https://trac.webkit.org/changeset/276882/webkit It would be helpful if you could host the repro. Here is the repo hosted on github pages: https://tladd.github.io/styled-components-shadow-dom-ios15-beta-bug/ So the page mutates inline stylesheet in a shadow tree via CSSOM. A bad pattern in terms of performance and everything else, but it should still work. I suppose we are missing some invalidation after mutation. Created attachment 436386 [details]
repro
Created attachment 436387 [details]
patch
Thanks for reduction, it was very helpful. Thanks so much for digging into this! Committed r281700 (241050@main): <https://commits.webkit.org/241050@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 436387 [details]. |