| Summary: | [LegacySVG] SVG2: getScreenCTM(): ancestor CSS transform scale not applied | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Martin <martin.aumair> | ||||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | ahmad.saleem792, ian, michaeldo, rbuis, sabouhallawa, simon.fraser, webkit-bug-importer, zalan, zimmermann | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Other | ||||||||
| Hardware: | iPhone / iPad | ||||||||
| OS: | iOS 12 | ||||||||
| Attachments: |
|
||||||||
|
Description
Martin
2020-03-18 02:49:27 PDT
I'm getting the reportedly incorrect output from Safari on macOS too. Created attachment 402280 [details] Expected result (Chrome) https://jsfiddle.net/z8y6bcrg/3/ I think I've run into the same issue but with a rotation on the ancestor. I may be wrong about this, but given that both getScreenCTM() and getBoundingClientRect() fail under one condition or another (https://bugs.webkit.org/show_bug.cgi?id=212640), there doesn't appear to be any way to reliably translate a coordinate from a responsive SVG to client space... This still appears broken in iOS 15.5. Have there been any updates on rdar://problem/60611550 which can be shared here? *** Safari 16 on macOS 12.6 *** ctm.a= 1 ctm.d= 1 scale: 2 *** Safari Technology Preview 154 *** ctm.a= 1 ctm.d= 1 scale: 2 *** Firefox Nightly 107 *** ctm.a= 1 ctm.d= 1 scale: 2 *** Chrome Canary 108 *** ctm.a= 2 ctm.d= 2 scale: 2 ____ Just wanted to share updated results. Thanks! Is it something LBSE might fix? Indeed fully fixed in LBSE - but not upstreamed yet. I also have new test cases for various scenarios. Stay tuned |