Conversation
…/55671-pdf-shadow
|
I've synced it up. |
|
Videos are looking good to me. |
|
Awesome, looks good to me - thanks for updating! |
|
@rayane-d all you! |
…/55671-pdf-shadow
|
I've synced it up. |
…/55671-pdf-shadow
|
I've synced it up. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-03.at.3.47.33.PM.movAndroid: mWeb ChromeScreen.Recording.2025-03-03.at.3.11.12.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.28.57.mp4Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.29.18.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.12.55.mp4Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.14.57.08.mp4MacOS: Chrome / SafariScreen.Recording.2025-03-03.at.2.49.14.PM.movMacOS: DesktopScreen.Recording.2025-03-03.at.2.50.27.PM.mov |
|
@rezkiy37 @Expensify/design There is a difference in the shadows between mWeb Safari and mWeb Chrome:
@Expensify/design Is this difference acceptable? I don’t understand why there’s a discrepancy since we’re applying the same styles. Any ideas, @rezkiy37? I suspect it might be platform-related. |
|
cc @Expensify/design Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-03.at.3.47.33.PM.movAndroid: mWeb ChromeScreen.Recording.2025-03-03.at.3.11.12.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.28.57.mp4Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.29.18.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.15.12.55.mp4Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-03-03.at.14.57.08.mp4MacOS: Chrome / SafariScreen.Recording.2025-03-03.at.2.49.14.PM.movMacOS: DesktopScreen.Recording.2025-03-03.at.2.50.27.PM.mov |
|
@rayane-d, yes, the difference in shadow appearance between mobile Safari (mWeb Safari) and mobile Chrome (mWeb Chrome) can be platform-related. Several factors could be causing this issue: Different Rendering Engines, Differences in CSS Shadow Rendering, Pixel Density & Rendering Differences, and Color Management Differences. I can try to align them if it is not acceptable by @Expensify/design. |
|
I think as long as the CSS values are truly identical, then we're good. But visually it does seem like a bigger difference than I would expect. Do we need to do any kind of weird `webkit resetting or anything via CSS? |
I feel the same. It might be nice to understand why they're so different, but I think as long as the values are the same on our end, it's fine. |
|
Well, I am figuring it out! Let you know soon. |
|
Yes, the shadow difference between mWeb Safari and mWeb Chrome can be a platform-related issue due to differences in rendering engines. Safari (WebKit) and Chrome (Blink on Android) handle box-shadow differently, affecting blur, spread, and anti-aliasing. Additionally, Safari applies color profiles more aggressively, which can alter shadow appearance. Device pixel ratio and subpixel rendering also contribute to these inconsistencies. Moreover, we usually face it with native applications as well. |
|
The screenshots you just posted look very similar to me. I'd be in favor of rolling with it. |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #55671 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Right on, works for me and thanks for the detailed explanation! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 9.1.9-0 🚀
|
|
🚀 Deployed to staging by https://github.com/amyevans in version: 9.1.9-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.9-8 🚀
|




Explanation of Change
The PR fixes the grey line that appears when the app loads a PDF file. Also, the line is visible during the fast scroll via the scrollbar.
Fixed Issues
$ #55671
PROPOSAL: #55671 (comment)
Tests
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android.mp4
Android: mWeb Chrome
Android.Chrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
IOS.Safari.mp4
MacOS: Chrome / Safari
Both.mp4
Single.mp4
Chrome.mp4
MacOS: Desktop
Desktop.mp4