Bug 321467
| Summary: | [iOS] object-view-box view-transition overflow-visible path off by 1 device pixel | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alice Tang <tang.alice.000> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=316882 | ||
Alice Tang
old-content-with-object-view-box.html and new-content-with-object-view-box.html (imported/w3c/web-platform-tests/css/css-view-transitions/) fail on iOS by 1 device pixel.
Root cause: RenderViewTransitionCapture.cpp, in the overflow-visible paint path for ::view-transition-old/new with object-view-box:
dstRect = snapRectToDevicePixels(computePaintRectForObjectViewBox(replacedContentRect), document().deviceScaleFactor());
On iOS's higher deviceScaleFactor (2x/3x vs. Mac), this snaps the view-box paint rect to a different device pixel than the reference image expects, producing a consistent 1px diff. Appears to be a device-pixel-snapping rounding difference, not a functional bug.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/184557440>
Alice Tang
Pull request: https://github.com/WebKit/WebKit/pull/71328
EWS
Test gardening commit 318994@main (b11e8b5ae63a): <https://commits.webkit.org/318994@main>
Reviewed commits have been landed. Closing PR #71328 and removing active labels.