Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Size of span Element Not Rendering Correctly in Mobile Mode in .NET MAUI Blazor #26924

Open
DivyaSF4512 opened this issue Jan 2, 2025 · 3 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@DivyaSF4512
Copy link

DivyaSF4512 commented Jan 2, 2025

Description

Bug Description:
In a .NET MAUI Blazor application, a span element styled with a font size of 4.87761px inside a div renders incorrectly in mobile mode. The expected font size of the span is approximately 4.88px, but it is rendered as 10.4px. This issue affects mobile devices and does not seem to align with the specified CSS rules.

Environment Details:
Framework: .NET MAUI Blazor

Kindly find the below attachments

Image

Screenshots
Image

Image

Sample
MauiAppSample.zip

Steps to Reproduce

Reproduction Steps:
1. Create a .NET MAUI Blazor project.
2. Add the following code to a Blazor page (e.g., Main.razor):
Image

Expected Behavior:
The span element should render with a font size of approximately 4.88px on mobile devices, matching the CSS-defined value.

Actual Behavior:
The span element renders with a font size of 10.4px instead of the specified 4.87761px. This deviation occurs in mobile mode.

@DivyaSF4512 DivyaSF4512 added the t/bug Something isn't working label Jan 2, 2025
@jfversluis
Copy link
Member

If you add a regular web view, does this issue still show? In the device browser, does this issue sto show?

@jfversluis jfversluis added area-blazor Blazor Hybrid / Desktop, BlazorWebView s/needs-info Issue needs more info from the author labels Jan 2, 2025
@DivyaSF4512
Copy link
Author

Hi @jfversluis
The reported issue is also replicated in .Net MAUI Sample in Mobile Device.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jan 3, 2025
@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/android 🤖 labels Jan 3, 2025
@Ying-6
Copy link

Ying-6 commented Jan 3, 2025

This issue has been verified using Visual Studio 17.13.0 Preview 2.1 (9.0.21 & 9.0.14 & 8.0.100). Can repro this issue on Android device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants