What causes CSS to malfunction in Safari when using multiple repeating-linear-gradients?

While testing a webpage on Chrome and Safari iOS, I encountered an interesting issue. When applying the CSS class below, Chrome displays the page with a pseudo-checkboard pattern checkered background, whereas Safari on iOS does not show the pattern at all missing background pattern. It appears that there might be a problem caused by using "repeating-linear-gradient" twice in this context. Any suggestions or tips to resolve this inconsistency?

#background {
  opacity: 0.8;
  background-color: var(--ion-color-dark);
  background-image: repeating-linear-gradient(
      45deg,
      var(--theme-primary-color) 25%,
      rgba(255, 255, 255, 0) 25%,
      rgba(255, 255, 255, 0) 75%,
      var(--theme-primary-color) 75%,
      var(--theme-primary-color)
    ),
    repeating-linear-gradient(
      45deg,
      var(--ion-toolbar-background) 25%,
      #ffffff 25%,
      #ffffff 75%,
      var(--ion-toolbar-background) 75%,
      var(--ion-toolbar-background)
    );
  background-position: 0 0, 40px 40px;
  background-size: 80px 80px;
}

Answer №1

Identified the problem as an interference caused by css variables and numerous repeating-linear-gradients. The best approach is to avoid utilizing multiple variables for color schemes.

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

Using Selenium's findElement method along with By.cssSelector to locate elements with multiple classes

I'm a beginner with selenium. Can someone explain how to locate an element that has multiple classes and values? <div class="md-tile-text--primary md-text">Getting Started</div> using the findElement method By .css Selector. ...

In need of a joystick specifically for navigating up, down, left, and right

Looking to implement a joystick in my SpriteKit project that only allows movement in four directions: left, right, down, and up. I've been searching for an open source solution but most joysticks I found allow for circular rotation, which is not suit ...

Having trouble getting the toggle menu to work using Jquery?

I am trying to create a toggle menu using jQuery on this particular page: . The menu is located in the top right corner and I want it to appear when someone clicks on the "Menu ☰" button, and then disappear when clicked again (similar to this website: ). ...

What is the best way to align this button next to the text and header on the page?

I'm struggling to position this button next to the paragraph element instead of below it. I want them both on the same line. <div class="up"> <div class="ban"> <div class="act"> <h2>Joi ...

What is the best way to integrate SSZipArchive into an IOS 5 project?

As I worked on my project, the need arose to unzip specific files. After some research, I came across the library SSZipArchive. Integrating it into Xcode 4.2 was fairly straightforward - simply right-click on the Classes folder and add files to the project ...

Add the cordova plugin multi-image-picker with the following command

onDeviceReady: function() { window.imagePicker.getPictures( function(results) { for (var i = 0; i < results.length; i++) { alert('Image URI: ' + results[i]); } }, function ...

What is the relationship between `overflow:hidden` and the inability of `position:sticky` to function properly?

Within the code snippet provided, there is a sticky div positioned inside a container. It adheres to the top of the scrolling panel while remaining within its designated container at all times. This mimics the behavior seen in iOS' UITableView headers ...

Concealing a div element while ensuring that it does not obscure any of its contents

There is a challenge I'm facing that I need help solving. I am using a shop script that only allows me to edit the CSS file. Within this setup, there is a div with a background image and inside there is a normal image: <style type="text/css"> ...

Show the Yajra datatable's horizontal scrollbar at the bottom of the browser window

When using Yajra datatable, the Horizontal scrollbar typically appears at the bottom of the webpage. However, I am looking to have it display at the bottom of the browser window instead. The datatable is contained within a card. I attempted to achieve thi ...

Creating two divs with equal heights in React using Material-UI at 50% each

I am currently utilizing a Material UI template within a react JS project. My goal is to create a div (or Grid in MUI) that spans 100% of its container's height, containing two nested divs (or Grids) that are each set at 50% height. If the internal c ...

Using CSS to automatically convert a table into one column layout with labels from the thead section

Is it possible to automatically create the labels for data when converting a multi-columns table into one column using CSS and taking the information from the thead section? This resource discusses how to convert a multi-column table into a single column ...

"Utilize input within the div element to occupy the entire cell of the

There is a form input enclosed within a div which is nested inside a table cell. <td align="left" id="subformAttachments_Htmltable1td10" style="border:solid 1px black;width:316px;" class="tbldroppable ui-droppable ...

Ordering tables in jQuery with both ascending and descending options

Trying to sort a table in ascending and descending order using jQuery? Here's the JavaScript code for it. However, encountering an error: Cannot read property 'localeCompare' of undefined If you can provide guidance on how to fix this so ...

Issue with adjusting the height of the inputAccessoryView

When adjusting the height of inputAccessoryView in iOS 8, it seems to cover the keyboard instead of moving to the correct position. Below are snippets of the code: inside the table view controller - (UIView *)inputAccessoryView { if (!_commentInputV ...

Achieve a smooth slide-in effect from the left for your sidebar when the button is clicked using TailwindCSS

I am currently working on a sidebar menu with a button that toggles its visibility. However, I am struggling to implement a sliding animation from the left when the sidebar appears, and a slide back to the right when it closes. This is what my code looks ...

Issues with Ajax calls in IOS on Ionic Cordova, functioning properly on Android

After meticulously following the instructions provided on this website, I successfully got my app to work flawlessly on Android and in my Chrome browser using the Ionic server. However, I encountered issues when testing it on an iOS emulator or my actual i ...

Focus on a specific button based on its text inside

Two buttons are present with the same class but different content <a class="button ordrViewBtn">Sold Out</a> <a class="button ordrViewBtn">Re-Sell</a> I want to change the color of the "Sold Out" button. Is it p ...

The .val method works without any issues in the emulator, but fails to function properly on the actual

Currently, I am developing an app with a list view featuring a roster of students. The goal is for users to be able to tap on a student's name and have a form automatically populate with that student's details for viewing or editing. While this f ...

Using the Xcode Master-Detail Template to incorporate a UITabBarController as the primary controller in the UISplitViewController structure

I have made a modification to the Xcode 7 (also applicable to 6) master-detail template by replacing the master UINavigationController with a UITabBarController. The UITabBarController contains UINavigationControllers which then have segues to the Detail ...

Having trouble with collapsing elements on JavaScript?

I am encountering an issue with the code provided below. It seems to be working fine in this JSFiddle link: http://jsfiddle.net/e6kaV/33/. However, I am receiving the following error message: { "message": "Uncaught ReferenceError: $ is not defined", ...