What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a CSS background appears in Chrome or Firefox but disappears in Safari, debug four separate layers: the image request, the matched CSS declaration, the element’s box, and Safari or iOS-specific behavior. Safari supports modern background-size values such as cover and contain, so replacing working CSS with a vendor prefix is rarely the right first move. Inspect the computed style and network request, give the element visible dimensions, then isolate sizing, positioning, repeat, attachment, and loading behavior.

Start with the rendered element, not the stylesheet

Open Safari’s Web Inspector (Develop menu on macOS; remote inspection from a Mac for iPhone or iPad) and select the element that should display the image. Work through these checks in order.

  1. Verify selector matching. In the Styles panel, confirm your rule is applied. Look for a later rule, media query, or component style that overrides it.
  2. Read the computed value. The computed background-image must contain a URL, not none. A later background shorthand can reset individual longhands, including the image.
  3. Check the request. In the Network panel, reload and find the image URL. A 404, a case mismatch in the path, an incorrect relative URL, a redirect problem, or a host that blocks the request will prevent the background from rendering. Open the same URL directly in Safari to distinguish a CSS problem from an asset problem.
  4. Check the box. A background belongs to the element’s box. If width or height collapses to zero, the element is hidden, or another layer covers it, there is no visible area in which to paint the image.
  5. Add a diagnostic color. Temporarily set a contrasting background-color. If the color appears, the element and selector are working and the fault is probably the image URL or image sizing. If the color also disappears, continue with selector, geometry, visibility, and stacking checks.

These tests prevent you from treating every missing image as a Safari compatibility bug.

Use explicit background properties while diagnosing

Safari treats the image, position, repeat, attachment, and size as separate controls. Split a shorthand declaration into longhands so each value is visible in the inspector:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Blush
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.
.hero {
  min-height: 24rem;
  background-color: #263238;
  background-image: url("/images/hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

The minimum height is only an example; choose dimensions appropriate to your layout. The important diagnostic properties are explicit and independently adjustable.

When the image is cropped or appears too large

background-size: cover fills the box while preserving the image’s aspect ratio, so some edges may be cropped. Use contain when the entire image must remain visible; it may leave empty space. auto uses the image’s intrinsic dimensions. WebKit documents all three as supported values. After selecting a size, adjust background-position (for example, center top) to keep the important part in view.

When only part of the image repeats

Set background-repeat: no-repeat for a single hero image. If a tile is intended, use repeat-x, repeat-y, or repeat deliberately. A shorthand such as background: url(...) center/cover can reset repeat, color, and attachment values from earlier declarations, so inspect the final computed style.

Rank #2
Sale
Apple 2026 MacBook Air 13-inch Laptop with M5 chip: Built for AI, 13.6-inch Liquid Retina Display, 16GB Unified Memory, 512GB SSD, 12MP Center Stage Camera, Touch ID, Wi-Fi 7; Midnight
  • BUILT FOR COLLEGE. AND BEYOND — MacBook Air with the M5 chip packs blazing speed and powerful AI capabilities into an incredibly portable design. And with up to 18 hours of battery life,* this thin and light powerhouse is ready to take on almost any major, just about anywhere.
  • TEAR THROUGH TOUGH ASSIGNMENTS — With its faster CPU and unified memory, the M5 chip delivers even more performance and fluidity across apps, making multitasking and creative workflows smooth and responsive. A powerful Neural Engine and next-generation GPU with Neural Accelerators give you a powerful platform for AI.
  • MAKE QUICK WORK OF YOUR TO-DO LIST — Apple Intelligence helps you write, express yourself, and get things done effortlessly — whether it’s for school or everyday life. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
  • UP TO 18 HOURS OF BATTERY LIFE — MacBook Air delivers incredible battery life with amazing performance, so you can power through a full day of classes without worrying about plugging in.
  • A BRILLIANT 13.6-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Air supports 1 billion colors, making photos and videos pop with rich contrast and sharp detail, and text appears supercrisp. So everything — from class presentations to movies to games — looks truly stunning.

Fix the element’s geometry and stacking

A correctly downloaded image still cannot appear on a zero-sized or covered element. Check the following in the Layout and Computed panels:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Give a section containing only a background a min-height, fixed height, padding, or content that establishes its dimensions.
  • Confirm that a parent is not display: none, that the element is not visibility: hidden or fully transparent, and that a media query has not removed its dimensions.
  • Inspect overflow: hidden and clipping paths. They can hide the painted area even when the element itself exists.
  • Check positioned overlays, pseudo-elements, and high z-index layers. Temporarily disable them to see whether they cover the background.
  • Make sure the background is attached to the element you think it is. A class on a wrapper does not paint behind a child unless the wrapper has a visible box.

Use the element’s box highlight in Web Inspector and temporarily add an outline such as outline: 2px solid magenta to make its actual bounds obvious.

Investigate URL and loading failures

Relative paths and case sensitivity

A URL in a stylesheet is resolved relative to the CSS file, not necessarily the HTML document. For example, url("../images/hero.jpg") points one directory above the stylesheet. Production servers can be case-sensitive even when local development is not, so Hero.jpg and hero.jpg may be different files.

Rank #3
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Indigo
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.

Response and hosting checks

Open the request in the Network panel and verify a successful status, a non-empty response, and an image content type. Check authentication, hotlink protection, certificate errors, redirects, and content-security-policy rules if the request is blocked. A background image does not use an HTML img element, so an image fallback or alt text will not appear when it fails.

Lazy loading and the iOS 15.5 report

WebKit Bugzilla report 241512 records a historical iOS 15.5 issue involving lazy-loaded images and CSS background-image; the report was marked as a duplicate. It is a version-specific lead, not evidence that lazy loading breaks backgrounds in current Safari. If your failure began after enabling lazy loading, reproduce it on the affected device and Safari version, then test without lazy loading and with the image requested immediately.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Handle iPhone and iPad background attachment behavior

On iOS, background-attachment: fixed has documented limitations. WebKit report 234779 describes cases where the background is cropped or its position and size are ignored. This does not establish the same limitation for desktop Safari.

Rank #4
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Silver
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.

As a diagnostic, remove the declaration:

.hero {
  background-attachment: scroll; /* or omit the property */
}

If the image then displays correctly, use ordinary scrolling or recreate the visual effect with a separate positioned layer:

.parallax {
  position: relative;
  overflow: hidden;
}
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/hero.jpg") center / cover no-repeat;
}
.parallax-content {
  position: relative;
}

Test this replacement on the actual iOS versions you support. Do not apply -webkit-background-size as a blanket modern fix; WebKit lists the unprefixed property as supported and mentions the alias for compatibility history.

When Safari shows the image but it looks soft

Blurriness on an iPhone or iPad is an asset-density issue, not a failed background request. High-density displays may need an appropriately larger source image or density-aware selection. Apple’s archived guidance on serving images to displays of varying pixel density describes image sets for choosing assets by display density.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Apple 2025 MacBook Pro Laptop with Apple M5 chip with 10‑core CPU and 10‑core GPU: Built for AI, 14.2-inch Liquid Retina XDR Display, 16GB Unified Memory, 1TB SSD Storage; Space Black
  • SUPERCHARGED BY M5 — The 14-inch MacBook Pro with M5 brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. Featuring all-day battery life and a breathtaking Liquid Retina XDR display with up to 1600 nits peak brightness, it’s pro in every way.*
  • HAPPILY EVER FASTER — Along with its faster CPU and unified memory, M5 features a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance. So you can blaze through demanding workloads at mind-bending speeds.
  • BUILT FOR APPLE INTELLIGENCE — Apple Intelligence is the personal intelligence system that helps you write, express yourself, and get things done effortlessly. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
  • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.
  • APPS FLY WITH APPLE SILICON — All your favorites, including Microsoft 365 and Adobe Creative Cloud, run lightning fast in macOS.*

For a CSS background, you can use:

.logo {
  background-image: image-set(
    url("/images/logo.png") 1x,
    url("/images/logo@2x.png") 2x
  );
  background-repeat: no-repeat;
  background-size: contain;
}

Confirm in Web Inspector which asset was selected. Density selection will not fix a 404, a zero-sized element, or a request blocked by the server.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

A reliable Safari debugging sequence

  1. Reproduce the issue in the exact desktop Safari or iOS Safari version and record whether other browsers work.
  2. Inspect the element and disable all background declarations, then add a contrasting color.
  3. Restore background-image with an absolute or known-good URL and check the Network panel.
  4. Give the element a temporary width, min-height, outline, and solid color.
  5. Add background-repeat: no-repeat, background-position: center, and background-size: cover separately.
  6. On iOS, remove background-attachment: fixed and compare scrolling and cropping.
  7. If the image is soft rather than absent, inspect density-aware assets.
  8. Retest after removing lazy loading only when the symptom and version make the historical iOS report relevant.

Common symptoms and targeted fixes

Symptom Likely layer Action
Color and image both missing Selector or box Check computed styles, dimensions, visibility, and covering layers.
Color appears, image does not Request or URL Open the URL directly; inspect status, path case, redirects, and blocking headers.
Image is zoomed or cropped Size or position Compare cover, contain, and auto; then adjust position.
Image repeats unexpectedly Repeat or shorthand Set background-repeat: no-repeat and inspect later shorthands.
Only iPhone or iPad is wrong Attachment or version behavior Remove fixed; test the target OS and Safari release.
Image is visible but blurry Pixel density Provide density-appropriate assets and verify the selected source.

Testing practices that prevent regressions

Keep a small test page with the target background, a visible diagnostic color, and explicit longhand properties. Test at least one desktop Safari build and each iOS version you claim to support, at the viewport sizes where the design changes. Capture a Network log for failures and compare computed styles between a working browser and Safari. Avoid relying on a prefixed declaration unless you have reproduced a specific legacy-version requirement.

Or skip the browser setup

If your goal is an automated screenshot rather than diagnosing the CSS itself, ScreenshotNeo can load the page and return an image or PDF through one request. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.

cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo API documentation for the 63 capture options, including full-page and element capture, device presets, retina scale, custom CSS and JavaScript, waits, headers, cookies, geolocation, request blocking, PDFs, caching, signed links, asynchronous jobs, webhooks, bulk capture, and usage data. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Does Safari require a special prefix for background-size?

No. WebKit documents the unprefixed property and supports values including auto, cover, and contain. Investigate the computed style, request, and element box before adding a prefix.

Why does the same background work on macOS Safari but not iPhone Safari?

Compare the target iOS version, element dimensions, and use of background-attachment: fixed. iOS has documented limitations for fixed backgrounds that do not apply as a blanket rule to desktop Safari.

Can an image-set fix a missing background?

No. image-set() addresses density and softness after an image loads. It cannot repair a bad URL, blocked request, overridden declaration, or zero-sized element.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.