[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EKHRA8K0QTHAAR2KPRZA9F":3,"skill-same:01M7EKHRA8K0QTHAAR2KPRZA9F":74},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7EKHRA8K0QTHAAR2KPRZA9F","zoom-reflow",null,"raillen\u002Fdaisy-code-editor","raillen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50306048?v=4","01M7EKBDVVBSPF21PBPVJYMNYR","Raillen Santos","01M7EKBDWD12A1K9N9Y638FGX9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Responsive Reflow, Text Resize & 400% Zoom Accessibility (WCAG 2.2 SC 1.4.4 & 1.4.10)\n\n## 1. Purpose\nDesign, implement, and verify fluid user interfaces that support full responsiveness, user font scaling, and multi-directional reflow without horizontal scrolling or loss of functionality. This skill mandates strict adherence to **WCAG 2.2 SC 1.4.4 (Resize Text up to 200%) and SC 1.4.10 (Reflow at 400% zoom \u002F 320 CSS pixels)**, relative typography sizing (`rem`\u002F`em`), defensive container sizing, and elimination of fixed-pixel layout clipping.\n\n---\n\n## 2. Use When\n- Building responsive web applications, desktop application webviews, or documentation portals.\n- Testing layouts against 400% zoom on a standard 1280px display (equivalent to a 320px viewport).\n- Verifying that browser default font adjustments (up to 200%) resize all textual content without truncation or overlap.\n- Designing modals, navigation sidebars, data tables, and forms for constrained mobile viewports.\n- Operating in mode(s): `testing`, `implementation`, `review`, `audit`.\n\n---\n\n## 3. Do Not Use When\n- Developing native terminal UI (TUI) interfaces with fixed character cell grids (use `tui` protocol).\n- Building specialized two-dimensional canvases (e.g. 3D viewports, spreadsheet grids, CAD drawing canvases) explicitly exempt under SC 1.4.10.\n- Creating native game engine HUDs with fixed pixel coordinate buffers.\n\n---\n\n## 4. Required Context\nBefore auditing or implementing reflow behavior, verify:\n- **Reflow Viewport Target**: 320 CSS pixels wide by 256 CSS pixels high (simulating 400% zoom on a 1280x1024 screen).\n- **Text Scaling Target**: 200% browser font size increase without assistive technology screen magnifiers.\n- **Exempt Content Classification**: Identify two-dimensional essential content (data tables, code diff blocks, schematic diagrams, canvas maps).\n- **Styling Paradigm**: CSS Grid, Flexbox with `flex-wrap: wrap`, CSS `clamp()`, and relative container queries (`@container`).\n\n---\n\n## 5. Procedure\n\n```\n[UI Layout \u002F Component CSS]\n         |\n         v\n[1. Relative Units Enforcement] -----> Convert px fonts\u002Fspacing to rem\u002Fem\n         |\n         v\n[2. Viewport 320px Reflow Check] ----> Flex wrap, column collapse, zero horizontal scroll\n         |\n         v\n[3. Fixed Height & Overflow Audit] --> Eliminate fixed height + overflow:hidden on text\n         |\n         v\n[4. Sticky \u002F Fixed Header Budget] ---> Cap sticky chrome to \u003C 30% of viewport height\n         |\n         v\n[5. Automated Reflow Gauntlet] ------> Headless Playwright 320x256 snapshot verification\n```\n\n### Step 1: Relative Units & Font Scaling (SC 1.4.4)\n1. Set root font size to browser default (`html { font-size: 100%; }` or `16px` default). Never lock root font size with an absolute pixel value like `html { font-size: 16px !important; }`.\n2. Declare typography and container padding in relative units (`rem`, `em`, `ch`):\n   ```css\n   .card-title {\n     font-size: 1.25rem; \u002F* Scales when browser font size changes *\u002F\n     line-height: 1.4;\n   }\n   ```\n3. Use media queries declared in `em` units so breakpoints adjust when the user zooms in text:\n   ```css\n   @media (max-width: 48em) { \u002F* 768px at 16px font; expands at 200% font *\u002F\n     .layout-columns { flex-direction: column; }\n   }\n   ```\n\n### Step 2: 400% Zoom \u002F 320 CSS Pixels Reflow (SC 1.4.10)\n1. Multi-column layouts must automatically collapse into a single vertical stream at widths $\\le 320\\text{px}$:\n   ```css\n   .grid-container {\n     display: grid;\n     grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));\n     gap: 1rem;\n   }\n   ```\n2. Modals, sidebars, and dialogue cards must use `max-width: 100%` or `max-width: calc(100vw - 2rem)`. Never specify fixed widths exceeding 300px without a fluid max-width clamp.\n\n### Step 3: Fixed Heights & Clipping Eradication\n- Never combine fixed heights (`height: 40px`, `max-height: 200px`) with `overflow: hidden` on elements containing user-facing text.\n- Use `min-height` instead of `height` to allow containers to expand vertically when text scales to 200%:\n  ```css\n  \u002F* FORBIDDEN: Text truncates on 200% zoom *\u002F\n  .button { height: 40px; overflow: hidden; }\n\n  \u002F* COMPLIANT: Container expands vertically if text wraps *\u002F\n  .button { min-height: 2.5rem; padding: 0.5rem 1rem; }\n  ```\n\n### Step 4: Sticky Chrome & Screen Real Estate Budget\nAt 400% zoom, the effective viewport height is often only $256\\text{px}$:\n- Sticky top navigation bars and bottom action bars must not exceed 25% of viewport height combined.\n- Use `@media (max-height: 25em)` to un-stick fixed headers or convert them into static scrollable elements:\n  ```css\n  @media (max-height: 25em) {\n    .site-header {\n      position: static; \u002F* Un-stick header on vertically constrained zoomed screens *\u002F\n    }\n  }\n  ```\n\n### Step 5: Handling Essential 2D Content\nFor tables or diagrams that require 2D scrolling:\n- Wrap the table in an explicit scroll container with `overflow-x: auto` and `tabindex=\"0\"`.\n- Do not let the outer document window scroll horizontally. The horizontal scrollbar must be strictly confined to the table container.\n\n---\n\n## 6. Decision Rules & Invariants\n- **RULE 1 (Zero Two-Dimensional Page Scrolling)**: The main document `window` must never exhibit horizontal scrolling at a 320px viewport width (except for explicitly isolated 2D data tables or maps).\n- **RULE 2 (No Fixed Font Pixels)**: Typography declared with fixed `px` sizes that fail to respond to browser default font adjustments fails review immediately.\n- **RULE 3 (No Text Truncation with overflow:hidden)**: Wrapping text in fixed-height containers with `overflow: hidden` or `text-overflow: ellipsis` that truncates critical content on text zoom is prohibited.\n- **RULE 4 (Modal Fluidity)**: Modals and flyout menus must fit within a 320px viewport without clipping action buttons or escape controls.\n\n---\n\n## 7. Evidence Required\n- **Headless Viewport Evidence**: Playwright automated test screenshots at $320\\text{px} \\times 256\\text{px}$ proving absence of document horizontal scrollbar (`window.innerWidth === document.documentElement.scrollWidth`).\n- **Text Scaling Evidence**: Screenshot verification showing all text containers expanding cleanly at 200% font scaling without overlap.\n- **Reflow Audit Scorecard**: Full evaluation of all primary user workflows under 400% zoom.\n\n---\n\n## 8. Output Contract\n- Responsive, fluid stylesheets conforming to SC 1.4.4 and SC 1.4.10.\n- Zoom & Reflow Audit Report (`templates\u002Fzoom-reflow-report.md`).\n- Automated Playwright\u002FCypress reflow test specifications.\n\n---\n\n## 9. Stop Conditions\n- Document `scrollWidth \u003C= innerWidth` verified at 320px viewport.\n- All text readable with zero overlap or clipping at 200% font resize.\n- Token budget exhausted.\n- Blocked on external dependency.\n\n---\n\n## 10. Escalation Rules\n- Escalate to UX lead if complex data visualization cannot be presented in 320px width without complete structural re-architecting into card lists.\n- Escalate if third-party embedded iframe cannot support fluid responsive resizing.\n",{},"main","2e465213b972294984c8c9515a47f811e4b358da",".agents\u002Fskills\u002Fzoom-reflow","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor","https:\u002F\u002Fgithub.com\u002Fraillen","https:\u002F\u002Fraillen.com","\u003C\u003CMarketing & IT>>\r\n\r\n@poppy-team\r\n@wasd-lat ","2026-10-16 09:17:52",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add raillen\u002Fdaisy-code-editor --skill zoom-reflow",{"tool":36,"command":37},"bunx","bunx skills add raillen\u002Fdaisy-code-editor --skill zoom-reflow",{"tool":39,"command":40},"pnpm","pnpm dlx skills add raillen\u002Fdaisy-code-editor --skill zoom-reflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",true,[44,50,56,60,64,70],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"checks\u002Fzoom-reflow-checklist.md","REFERENCE","参考文档",1765,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fchecks\u002Fzoom-reflow-checklist.md",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Ffluid-reflow.css","OTHER","其他",3449,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fexamples\u002Ffluid-reflow.css",{"path":57,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":58,"sourceHtmlUrl":59},"manifest.json",1584,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fmanifest.json",{"path":61,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fzoom-reflow-guide.md",5351,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Freferences\u002Fzoom-reflow-guide.md",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fverify.sh","SCRIPT","脚本",2051,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fscripts\u002Fverify.sh",{"path":71,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":72,"sourceHtmlUrl":73},"templates\u002Fzoom-reflow-report.md",2067,"https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Ftemplates\u002Fzoom-reflow-report.md",[75,80,86,93,100,107],{"skillNo":76,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EKQYSDAX3SGSCRF873Z8E2","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EKQX0MWJNQD482GGZPGES4","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7EKQS57FS6JYE6KWW6X5ADJ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7EKQMFR7651NVH100P5781Z","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M7EKQG3NVX6DPCYS6Q4PA71V","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7EKQEJ993JGC72FE2KFY3ZZ","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002Fraillen\u002Fdaisy-code-editor\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]