Font Size of span Element Not Rendering Correctly in Mobile Mode in .NET MAUI Blazor #26924
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
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
Screenshots
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):
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.
The text was updated successfully, but these errors were encountered: