Recently, there has been an issue with the size of SVG images specifically on Android Chrome

UPDATE: I have narrowed down the issue to two SVG images that can be found here: . Strangely, Chrome on Android is displaying the second SVG image underneath the first. Take a look at this screenshot of the incorrect rendering on the Chrome browser for Android: https://i.sstatic.net/dTVoe.jpg

The page loads correctly on other browsers though, as shown in this screenshot: https://i.sstatic.net/jHjrh.jpg


On my HTML page, there is a grid of SVG squares each measuring 50x50px.

This setup works flawlessly everywhere I've tested it (refer to the screenshots below), except for when using Chrome on Android. Interestingly, when testing on Desktop Chrome with the Devices Toolbar open in Inspector, the problem doesn't occur.

The issue started occurring only recently (around 1 month ago) on my Android Chrome browser.

  • Page URL:
  • Android version: 13
  • Android Chrome version: 114.0.5735.130

Refer to the code snippets below the screenshots for more information.


Functioning well in desktop Chrome Inspector, similar to how it appears on Brave browser for Android (and previously on Android Chrome):

https://i.sstatic.net/AN88M.jpg

Disordered SVG images observed in Chrome for Android, causing issues with page width as well:

https://i.sstatic.net/tiQhy.jpg


Essential CSS:

:root {
    --width: 500px;
    --height: 600px;
}
* {
    margin: 0;
    padding: 0;
}
body {
    width: 600px;
    margin: auto;
}
#maze {
    border: 2px solid #037C73;
    border-radius: 2px;
    width: var(--width);
    height: var(--height);
    margin: auto;
    padding: 0;
}
.rows {
    height: 50px;
}

Relevant SVG:

<svg
   width="50"
   height="50"
   viewBox="0 0 5.2916665 5.2916668"
</svg>

Answer №1

As mentioned earlier, I am no longer able to replicate this issue in the latest version of Chrome, 114.0.5735.147.

I have reported a regression bug for further tracking: bugs.chromium.org

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is there a way to determine which label in the Material UI default theme affects the default border color, specifically excluding the focus or hover border?

I am currently using the 'createTheme' function to personalize the theme of my TextField input component in Material UI. To implement the desired changes, I am referring to the default theme for Material UI on https://mui.com/customization/defau ...

Accordion component in Angular UI Bootstrap tends to vanish unexpectedly when toggling between open and close states on Chrome version

I am facing an issue with placing a Google Maps directions panel inside an Angular-UI-Bootstrap accordion. Whenever I open and close the panel containing the Google directions, the panel disappears as shown in the screenshot here. The strange thing is that ...

Ensure there is no blank space between the bootstrap labels when using ng-repeat

When using ng-repeat in Angular.js to add labels, they appear without spacing. Check out this Plunker for a demonstration. However, if I add labels manually by copying the HTML code, they are displayed with whitespace. Is there a way to add white space b ...

CSS: The deleted style refuses to disappear

Despite removing CSS code from my Rails application, after restarting the server and refreshing the page, I still see that the code is in effect. Even when inspecting the elements using Chrome, the code remains visible. @media screen and (min-width: 961px ...

What is the best way to retrieve information from a deeply nested array structure?

I need help retrieving values from a nested array within another array. While I can successfully retrieve values from the primary array, I am struggling to access the values from the nested array. Although I can extract data from the main array, I am faci ...

Achieving MVP in Android application development: Understanding Presenter state

Working with maps on Android has led me to the need to save the state of certain presenters in order to preserve data when leaving the activity (not just when rotating the screen). I've been struggling to find a solution other than using a singleton w ...

You may not have added the necessary Xamarin.Essentials component "UsesPermission" to your project. Have you included the correct using directive or assembly reference?

using Xamarin.Forms.Xaml; using Xamarin.Forms.PlatformConfiguration; using Xamarin.Essentials; [assembly: XamlCompilation(XamlCompilationOptions.Compile)] [assembly: UsesPermission(Android.Manifest.Permission.Vibrate)] Despite following the instructions ...

Developing an android application that uses jQuery Mobile for the frontend and Android for the backend

I'm looking to develop an Android app using jQuery Mobile for the design and Android for the backend. Can I successfully accomplish this task? Kindly provide your response along with a relevant example. Thank you in advance for your assistance. ...

What is the best way to retrieve the color of a WebElement when dealing with a complex CSS structure in Webdriver

I am currently trying to determine if the color of a specific page changes immediately after clicking on a button designed to alter the color of an element within that page. My goal is to extract the RGB value stated as rgb(183,168,168); in this particul ...

Modify the standard placement of choices in MUI

Currently, my UI is powered by MUI. I have various options displayed in the image below: https://i.sstatic.net/YKoyV.png Everything looks good so far. However, I wish to reposition the options container further down. (It is currently set at top: 64px ...

Troubleshooting overflow problems when centering a UL menu with an unspecified width

Trying to create a demo where the scrollbars are removed when resizing smaller, but adding overflow: hidden causes issues with sub-menus. Demo Link HTML <nav> <ul> <li><a href="#">Menu Item</a></li> ...

Opacity is causing issues with hover effects in CSS

I'm facing an unusual CSS challenge. Check out this simple code snippet below that showcases the issue: <html> <head> <style> .hover { float: right; } .hover:hover { background-color: blue; ...

Enhancing WordPress Menus with Icons in PHP

Is there a way to customize the HTML output of a menu created with wp_nav_menu()? I want to include < i > tags within the link < a > of each < li > item in the menu. I understand that I could achieve this using background-images in the C ...

Creating a multi-column ordered list that spans multiple pages is a great way to organize and

My goal is to showcase a numbered list in a three-column format, following the guidelines presented in this particular query. However, I am looking to maintain the continuity of the list across different pages by ensuring that the subsequent item on the ...

Manipulating the DOM in AngularJS Directives without relying on jQuery's help

Let's dive right in. Imagine this as my specific instruction: appDirectives.directive('myDirective', function () { return{ restrict: 'A', templateUrl: 'directives/template.html', link: functio ...

utilize spans for generating dividers

I attempted to create a border by using the CSS property border: 1px solid #333 within an empty span, but unfortunately I did not see any visible separator. Could it be that there needs to be content inside the span for the border to appear? Is there a way ...

Bursting at the seams: concealed issues

I am currently facing an issue with a facebook like button placed in the caption section of a slideshow div, located at the far bottom right corner. The problem arises when the 'post to wall' prompt pops up below the like button, but is cut off d ...

Designing a spacious and visually appealing interface with the Material UI Grid system, while

I created a personalized library using Material UI. The JSX code I am using is displayed below; <MyLayout container spacing={2}> <MyLayout item xs={9}> <MyComp1 /> </MyLayout> <MyLayout ite ...

Move one of the numerous navigation bar links to the right using Bootstrap 4

I'm currently facing a challenge as I try to align one specific navbar link to the right. More specifically, in this scenario, I want only the logout link to be on the right side of the nav bar. I've experimented with various solutions such as us ...

The variable "btnsave" is being accessed within an inner class and must be declared as final

I am facing an error in my code where I have tried to resolve it by declaring btnsave as final, but then two other errors show up: Unknown class: 'btnsave' Not a statement Can anyone suggest a solution to fix this issue? btnsave = (Button)findV ...