[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FCT208B9TQ3KAJ1D3JHSJ":3,"skill-same:01M78FCT208B9TQ3KAJ1D3JHSJ":75},{"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":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M78FCT208B9TQ3KAJ1D3JHSJ","zoom-reflow",null,"poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\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","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".agents\u002Fskills\u002Fzoom-reflow",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add poppyTM\u002Foride --skill zoom-reflow",{"tool":37,"command":38},"bunx","bunx skills add poppyTM\u002Foride --skill zoom-reflow",{"tool":40,"command":41},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill zoom-reflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",true,[45,51,57,61,65,71],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"checks\u002Fzoom-reflow-checklist.md","REFERENCE","参考文档",1765,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fchecks\u002Fzoom-reflow-checklist.md",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"examples\u002Ffluid-reflow.css","OTHER","其他",3449,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fexamples\u002Ffluid-reflow.css",{"path":58,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":59,"sourceHtmlUrl":60},"manifest.json",1584,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fmanifest.json",{"path":62,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fzoom-reflow-guide.md",5351,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Freferences\u002Fzoom-reflow-guide.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fverify.sh","SCRIPT","脚本",2051,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Fscripts\u002Fverify.sh",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"templates\u002Fzoom-reflow-report.md",2067,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoom-reflow\u002Ftemplates\u002Fzoom-reflow-report.md",[76,81,87,94,101,108],{"skillNo":77,"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":78,"categories":79,"keywords":80,"publishedAt":18},"01M78FHQN254KEH0DETXT5JM29","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"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":84,"categories":85,"keywords":86,"publishedAt":18},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M78FHE53D8DD0QVRY5C37DA4","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\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M78FHBJ1KXFF734GFE509TBJ","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\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"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":111,"categories":112,"keywords":113,"publishedAt":18},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]