cross-browser-typography-qa
Skill136 starsChanged 3 months agoMITView on GitHub
cross-browser-typography-qa — Diagnose and verify web typography rendering defects across Chromium, WebKit, and native Safari, including clipped glyphs, broken descenders, wrapping, font metrics, gradient text, and live-cache mismatches.
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 11 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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 25
Use this skill when web text looks clipped, flattened, wrapped incorrectly, misaligned, or materially different between Chromium and …
- Distinctive: line 40
Use a string containing ascenders, rounded forms, punctuation, and descenders.
- Distinctive: line 46
Read computed values for:
- Very specific: line 54
Use Range.getClientRects() for rendered-line counts and getBoundingClientRect() for containment, but never treat either as proof that glyph …
- Distinctive: line 64
Remove fixed heights or hidden overflow that cut off glyphs.
- Distinctive: line 65
Avoid synthetic or unsupported font weights when they distort metrics.
- Very specific: line 67
When a semantic hyphenated term breaks awkwardly, protect only that token with an inline span using white-space: nowrap.
- Distinctive: line 69
If a decorative gradient remains unstable, use a solid accessible text color rather than preserving a fragile effect.
- Distinctive: line 90
no unexpected wrapping or overlap.
- Distinctive: line 92
no horizontal overflow or console errors.
- Distinctive: line 99
Add a new stylesheet cache marker when deploying changed CSS.
- Distinctive: line 101
Read back the live stylesheet URL and computed values.
- Distinctive: line 103
Treat deployment success as transport evidence only.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Cross-Browser Typography QA
Purpose
Use this skill when web text looks clipped, flattened, wrapped incorrectly, misaligned, or materially different between Chromium and WebKit/Safari. Treat text rendering as both a geometry problem and a visual paint problem: passing DOM bounds does not prove that every glyph is intact.
Triggers
- Lowercase descenders such as g, j, p, q, or y appear cut off.
- Gradient or transparent text looks flattened at the baseline.
- A heading fits within its element but still looks clipped.
- Safari and Chromium disagree on line height, wrapping, button labels, or heavy font weights.
- A deployed fix appears absent despite a successful upload or publish message.
Workflow
1. Reproduce the exact defect
- Record the browser family, viewport, font family, weight, size, and exact text.
- Use a string containing ascenders, rounded forms, punctuation, and descenders.
- Capture a focused screenshot at the reported viewport before changing CSS.
- Inspect the actual glyphs, not only the element rectangle.
2. Inspect layout and paint
Read computed values for:
font-family,font-size,font-weight, andline-height;display,overflow, padding, transforms, and fixed heights;background-clip,-webkit-background-clip, and-webkit-text-fill-color;- loaded font status and fallback-font substitution;
- the stylesheet URL/cache marker actually active in the page.
Use Range.getClientRects() for rendered-line counts and getBoundingClientRect() for containment, but never treat either as proof that glyph paint is complete.
3. Repair the cause
Choose the smallest stable repair:
- Treat a user's “is it meant to be sized like that?” reaction as a real visual-acceptance signal, not merely a request to confirm CSS intent. First verify the actual browser window bounds and distinguish normal viewport rendering from browser zoom or an accidentally narrow layout. If the viewport is normal but the display type dominates the first screen, make a bounded desktop-only scale/spacing adjustment while preserving explicit mobile overrides.
- For a hero-scale correction, adjust the heading
clamp()and heropadding-blocktogether; shrinking only the type can leave the composition oddly empty. Add an exact contract assertion before the CSS change so the intended scale is durable, prove RED, then rerun five-width Chromium and native-Safari geometry plus visual inspection. - When the user asks to make a small, even-numbered product set “even,” prefer an equal two-column grid over editorial 7/5 nth-child spans. Encode the parity in a RED contract, remove obsolete asymmetric and breakpoint-reset rules, retain the one-column mobile override, update the stylesheet cache marker, and visually inspect paired card alignment—not only grid geometry.
- Increase the line box on the text-bearing element when font paint exceeds a tight line box.
- Remove fixed heights or hidden overflow that cut off glyphs.
- Avoid synthetic or unsupported font weights when they distort metrics.
- Rework pathological wrapping with width, balance, or explicit block structure.
- When a semantic hyphenated term breaks awkwardly, protect only that token with an inline span using
white-space: nowrap; do not force the entire heading onto one line. Keep the ordinary hyphen when exact-copy tests, translation keys, or search indexing depend on the literal string. - For
background-clip: text, prefer line-height correction over outside padding; outside padding can enlarge the box without enlarging the painted glyph mask. - If a decorative gradient remains unstable, use a solid accessible text color rather than preserving a fragile effect.
- When prose interleaves raw text with an inline emphasis element inside
display: flex, wrap the entire sentence in one inline-flow child (for example,<span>Press <strong>Start Session</strong> ...</span>). Otherwise the browser can promote text fragments and the emphasis element to separate anonymous flex items, making intended spaces appear missing or incorrectly distributed. Verify the actual rendered glyph spacing in the packaged app, not only the JSX or DOM text.
Mixed-inline-content spacing regression
Treat a screenshot showing PressStart Sessionto...-style spacing as a layout-structure defect before changing font metrics. Inspect the parent display mode and child structure; if text nodes surround an inline child in a flex container, use one wrapper element rather than inserting arbitrary literal spaces or changing word-spacing. Rebuild the production renderer and capture the exact installed process/window after replacement so stale or pre-fix surfaces cannot be mistaken for current evidence.
4. Verify locally
Test at minimum:
- 375 and 390 px mobile;
- the exact reported width;
- 1024 and 1440 px;
- Chromium and WebKit/Safari.
Before accepting any narrow screenshot, prove that the CSS viewport is actually narrow. Some headless Chromium invocations keep a minimum layout viewport around 500 CSS px and crop a --window-size=390 screenshot to 390 physical pixels. In-page, read innerWidth, document.documentElement.clientWidth, and document.documentElement.scrollWidth. If innerWidth does not equal the requested width, use CDP Emulation.setDeviceMetricsOverride, assert the width again, and only then inspect the screenshot. When overflow is real, inspect element bounding boxes and repair intrinsic grid/flex sizing with minmax(0, 1fr) or min-width: 0; do not hide the defect with overflow-x: hidden before identifying its cause.
Require:
- naturally shaped descenders;
- no unexpected wrapping or overlap;
- balanced spacing below the text;
- no horizontal overflow or console errors;
- one intended semantic heading where applicable.
When visual evidence follows an interaction, make UI state explicit. For a mobile menu, capture the open state after aria-expanded="true" and visible-link checks, then close it and wait for both aria-expanded="false" and the menu to become non-displayed before taking the clean layout screenshot. A successful click or DOM-count pass does not prove the screenshot captured the intended state.
5. Verify production
- Add a new stylesheet cache marker when deploying changed CSS.
- Load a fresh production URL, preferably with a harmless query marker.
- Read back the live stylesheet URL and computed values.
- Capture a fresh live screenshot and inspect the originally failing glyphs.
- Treat deployment success as transport evidence only; close the defect from live rendering evidence.
Common pitfalls
- Geometry-only false pass: The element is on-screen and
overflow: visible, but the glyph mask is clipped. - Padding-only false fix:
padding-bottomincreases element height while gradient-painted descenders remain flattened. - Stale-tab confusion: An old tab continues using a previous cache-busted stylesheet after a new deployment.
- Local-only acceptance: A local screenshot passes, but production serves an older stylesheet.
- Browser-family substitution: Chromium at Safari-like dimensions is not a Safari/WebKit acceptance gate.
- Screenshot scale blindness: Full-page screenshots can hide a one- or two-pixel baseline defect; inspect a focused crop or zoomed view.
Verification snippet
const el = document.querySelector('.gradient-text');
const cs = getComputedStyle(el);
const rect = el.getBoundingClientRect();
({
stylesheet: document.querySelector('link[rel="stylesheet"]')?.href,
fontFamily: cs.fontFamily,
fontWeight: cs.fontWeight,
lineHeight: cs.lineHeight,
overflow: cs.overflow,
backgroundClip: cs.backgroundClip,
webkitTextFillColor: cs.webkitTextFillColor,
rect: { top: rect.top, bottom: rect.bottom, height: rect.height }
});This snippet confirms state; it does not replace visual inspection.
references/gradient-text-descenders.md— focused diagnosis and repair pattern for clipped descenders in gradient display text.references/responsive-heading-wrap-and-ui-state.md— contract-first repair for awkward semantic-hyphen wrapping plus native-Safari open/closed screenshot-state acceptance.references/desktop-hero-scale-calibration.md— bounded desktop hero resizing from a real-browser acceptance signal, with RED contract, cache marker, five-width QA, and visible-tab refresh.references/responsive-product-card-grid-parity.md— user-driven conversion from asymmetric editorial spans to equal card rows, with RED contract, cache-busting, cross-browser QA, and local-Git closeout.
Public support files
references/desktop-hero-scale-calibration.mdreferences/gradient-text-descenders.mdreferences/responsive-heading-wrap-and-ui-state.mdreferences/responsive-product-card-grid-parity.md
Other versions1 project uses a version of this.
Word for word · 1
- AtlasOmnia/hermes-custom-pack★ 75100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository72 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apple-remindersSkill
- imessageSkill
- macos-app-automationSkill
- macos-storage-managementSkill
- hermes-agentSkill
- hermes-config-editingSkill
- hermes-context-optimizationSkill
- hermes-overnight-autonomySkill
- hermes-plugin-evaluationSkill
- hermes-session-maintenanceSkill
- local-model-selectionSkill
- opencodeSkill
- computer-useSkill
- claude-designSkill
- content-styleSkill
- marketing-collateral-designSkill
- dogfoodSkill
- codebase-inspectionSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-pre-push-gatesSkill
- github-pr-workflowSkill
- github-readme-maintenanceSkill
- github-repo-managementSkill
- github-workflowsSkill
- local-app-github-publishingSkill
- meal-trackerSkill
- hermes-desktop-pluginsSkill
- hermes-mnemosyneSkill
- hermes-self-evaluationSkill
- hermes-starter-onboardingSkill
- messaging-gateway-troubleshootingSkill
- mnemosyne-maintenanceSkill
- hermes-nightly-self-check-decisionsSkill
- hermes-plugin-developmentSkill
- skill-auditorSkill
- hermes-themesSkill
- notes-automation-workflowsSkill
- daily-note-wrapupSkill
- obsidianSkill
- vault-organizationSkill
- product-competitor-analysisSkill
- destination-trip-planningSkill
- discord-connectSkill
- domestic-trip-planningSkill
- google-workspaceSkill
- mapsSkill
- notionSkill
- office-document-reviewSkill
- session-artifact-indexingSkill
- daily-news-digestsSkill
- dynamic-content-extractionSkill
- evidence-based-repliesSkill
- external-model-reviewSkill
- hf-model-card-researchSkill
- local-discoverySkill
- marketplace-purchase-vettingSkill
- site-mappingSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

