safari-specific-debugging
Skill2 starsChanged 8 months agoMITView on GitHub
Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior. Start by running check_webkit_compatibility — it checks every CSS property on the page against the live Safari session via CSS.supports() and reports what is actually broken (unsupported properties, missing -webkit- prefixes): For specific elements, inspect computed styles directly: Common Safari CSS gotchas: Run diagnostics with evaluate_script: Known Safari JS quirks: - requestIdleCallback: Not available — use setTimeout fallback. - OffscreenCanvas: Partial support…
In this repository3 other files it gives its agents.
- a11y-debuggingSkill
- performance-debuggingSkill
- safari-devtoolsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior.
- Very specific: line 10
Start by running check_webkit_compatibility — it checks every CSS property on the page against the live Safari session via CSS.supports() …
- Very specific: line 33
Run diagnostics with evaluate_script:
- Distinctive: line 98
Check console for errors:
- Distinctive: line 104
Check network for failures:
- Distinctive: line 117
Test specific feature support:
- Distinctive: line 123
Check CSS compatibility across the page:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Safari-Specific Debugging
Use this skill when something works in other browsers but breaks in Safari, or when debugging WebKit-specific behavior.
Common Safari issues and how to debug them
CSS issues
Start by running check_webkit_compatibility — it checks every CSS property
on the page against the live Safari session via CSS.supports() and reports
what is actually broken (unsupported properties, missing -webkit- prefixes):
check_webkit_compatibilityFor specific elements, inspect computed styles directly:
get_computed_style uid="<element-uid>" properties=["display", "gap", "aspect-ratio", "container-type", "backdrop-filter"]Common Safari CSS gotchas:
-webkit-backdrop-filter: Still requires prefix in Safari <18.100vhon iOS Safari includes the address bar — use100dvhinstead.position: stickyinsideoverflow: autocontainers often breaks.:has()selector: Safari was first to ship it, but edge cases may differ.
JavaScript issues
Run diagnostics with evaluate_script:
evaluate_script function="() => {
return {
userAgent: navigator.userAgent,
webkitVersion: navigator.userAgent.match(/AppleWebKit\/(\d+)/)?.[1],
features: {
structuredClone: typeof structuredClone !== 'undefined',
requestIdleCallback: typeof requestIdleCallback !== 'undefined',
offscreenCanvas: typeof OffscreenCanvas !== 'undefined',
webComponents: typeof customElements !== 'undefined',
resizeObserver: typeof ResizeObserver !== 'undefined',
intersectionObserver: typeof IntersectionObserver !== 'undefined'
}
};
}"Known Safari JS quirks:
requestIdleCallback: Not available — usesetTimeoutfallback.OffscreenCanvas: Partial support —2dcontext only, no WebGL.- Date parsing:
new Date('2024-01-15')works, butnew Date('01-15-2024')may fail. Always use ISO 8601. fetchwithkeepalive: Stricter size limits than Chrome.- Web Locks API: Not supported in older Safari versions.
<input type="date">: Renders differently. Check withtake_snapshot.
Network / CORS issues
Check failing requests:
list_network_requests resourceTypes=["fetch", "xhr"]Then get details for any request with a 0 or 4xx/5xx status:
get_network_request reqid=<id>Known Safari network quirks:
- Third-party cookies blocked by default (ITP). Check with
get_cookies. - CORS preflight caching is stricter —
Access-Control-Max-Agemay be ignored for non-standard headers. - Service Worker cache can be more aggressive. Test with
evaluate_scriptto check registration:() => navigator.serviceWorker.getRegistration().
Form / input issues
Safari renders <select>, <input type="date">, <input type="time">
with native OS controls that differ from Chrome. Use take_snapshot to
see what the a11y tree reports, then take_screenshot for visual comparison.
Debugging workflow for cross-browser issues
Reproduce the issue:
navigate_page url="<problem-url>"Check console for errors:
list_console_messages types=["error", "warn"]Check network for failures:
list_network_requestsTake a snapshot and screenshot for comparison:
take_snapshot take_screenshotTest specific feature support:
evaluate_script function="() => { /* feature detection code */ }"Check CSS compatibility across the page:
check_webkit_compatibility- Inspect a specific element's styles:
get_computed_style uid="<element-uid>"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

