Datasets:
File size: 10,309 Bytes
ecf2e21 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | {
"kind": "baseline-checks",
"exportVersion": "1",
"scenario": {
"id": "frontend-aesthetic",
"version": "1.0.0"
},
"contractHash": "sha256:ec7629d3c0a40e081293b5ff99c018f1ecc459a4f79206f1a223e0bdd9b0006b",
"severities": {
"fatal": "the floor fails and the page is eliminated",
"severe": "the floor fails; the failure is marked on the card",
"minor": "recorded only; never fails the floor",
"flag": "a result value, not a severity: noted for review, never counted as a failure"
},
"floorRule": "a page passes the floor when no fatal or severe check fails",
"checks": [
{
"id": "fe.no-output",
"version": "1",
"severity": "fatal",
"summary": "The agent produced no page: out/index.html is missing.",
"rule": [
"fail when out/index.html does not exist after the run"
],
"selfTest": [
{
"injector": "fi.delete-entry",
"intensity": 1,
"expect": "fail"
}
]
},
{
"id": "fe.blank-page",
"version": "1",
"severity": "fatal",
"summary": "The page renders as blank on some viewport.",
"rule": [
"fail when a viewport shows fewer than 20 characters of visible text and images/painted areas cover under 5% of the page",
"or when the first-screen and full-page screenshots are ≥ 99.8% a single background colour"
],
"selfTest": [
{
"injector": "fi.blank",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.blank",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.blank",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.horizontal-scroll",
"version": "1",
"severity": "severe",
"summary": "The page scrolls sideways at a contract viewport.",
"rule": [
"fail when document scrollWidth exceeds clientWidth by more than 1 px at 1440x900 or 390x844 (unless the root clips x-overflow)",
"flag only (not counted) when it happens only at the extra scan widths 320, 768, 1024 px; the first failing width is reported"
],
"selfTest": [
{
"injector": "fi.wide-element",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.wide-element",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.text-overflow",
"version": "2",
"severity": "severe",
"summary": "Content text is cut off by its container.",
"rule": [
"fail when a text block with letters or digits (≥ 2 non-space characters) is clipped by an overflow:hidden/clip ancestor",
"ignored: aria-hidden and svg text, rotated/skewed text, collapsed <details> / content-visibility:hidden, symbol-only text, layers mirroring a scroll pane (editor gutters)",
"ellipsis truncation is a flag, not a failure"
],
"selfTest": [
{
"injector": "fi.text-clip",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.text-clip",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.text-clip",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.overlap",
"version": "2",
"severity": "severe",
"summary": "Readable text overlaps other text or is covered by an opaque element.",
"rule": [
"text-on-text overlap of at least 4×4 px, only the part inside its clipping containers",
"covered: at least 2 sample points of a text (1 when it has only one) are under an opaque element (image, video, iframe, form control, opaque background); svg graphics are not opaque covers",
"ignored: aria-hidden / svg text, rotated text, collapsed content, symbol-only text"
],
"selfTest": [
{
"injector": "fi.overlap",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.overlap",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.contrast",
"version": "2",
"severity": "severe",
"summary": "Main text is unreadable against its background (not mere WCAG AA misses).",
"rule": [
"faint = below 3:1 (large text 2:1); illegible = below 2:1 (large text 1.5:1); ratios from axe-core",
"fail on a viewport when faint text is ≥ 50% of the readable characters",
"or illegible text is ≥ 10% of the readable characters or ≥ 200 characters",
"readable = visible text with letters or digits plus text shown in form fields; aria-hidden, svg, disabled controls and symbols excluded",
"flag when contrast could not be measured"
],
"selfTest": [
{
"injector": "fi.low-contrast",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.low-contrast",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.contrast-aa",
"version": "1",
"severity": "minor",
"summary": "Some readable text is below the WCAG AA contrast ratio (recorded, never vetoes).",
"rule": [
"fail (minor) when any readable text is below 4.5:1 (large text 3:1); the detail gives the largest share and the lowest ratio"
],
"selfTest": [
{
"injector": "fi.low-contrast",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.low-contrast",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.broken-image",
"version": "1",
"severity": "severe",
"summary": "An image on the page failed to load or has no source.",
"rule": [
"fail when a displayed <img> has an empty src, or finished loading with naturalWidth 0 (lazy images not yet loaded are skipped)"
],
"selfTest": [
{
"injector": "fi.break-image",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.break-image",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.required-sections",
"version": "1",
"severity": "severe",
"summary": "A section the task card requires is not on the page.",
"rule": [
"fail when any of the card's requiredSections is not found on some viewport (matched by data-section, then id, then the words of the name in the attributes / text of sections, landmarks, headings, with synonyms)",
"pass when the card requires none"
],
"selfTest": [
{
"injector": "fi.remove-section",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.remove-section",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.fabrication",
"version": "1",
"severity": "minor",
"summary": "Heuristic marker for invented content when the card supplies fixed copy.",
"rule": [
"fail (minor) when a section the card withholds appears",
"or, when the card has inline content: a quotation of 25+ characters not supported by the card text (≥ 80% of its words), or ≥ 2 numbers not in the card (years 1990–2035 and integers under 10 ignored)"
],
"selfTest": [
{
"injector": "fi.fabricate",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.fabricate",
"intensity": 2,
"expect": "fail"
}
]
},
{
"id": "fe.console-errors",
"version": "2",
"severity": "severe",
"summary": "The page's own scripts throw or log errors.",
"rule": [
"fail on an uncaught page exception or a console.error from the page",
"not counted (browser notices, network): /Failed to load resource|net::ERR_|Blocked script execution in .* sandboxed|frame is sandboxed|^\\[Violation\\]|favicon\\.ico/i"
],
"selfTest": [
{
"injector": "fi.script-error",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.script-error",
"intensity": 2,
"expect": "fail"
}
]
},
{
"id": "fe.external-requests",
"version": "1",
"severity": "severe",
"summary": "The page tries to reach the network (rendering is offline).",
"rule": [
"fail when any request outside the local static server was blocked, or a page file (HTML, CSS, JS) references an external URL"
],
"selfTest": [
{
"injector": "fi.external-ref",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.external-ref",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.font-fallback",
"version": "1",
"severity": "minor",
"summary": "Text asks for a font the pinned font pack cannot provide.",
"rule": [
"fail (minor) when the first family of a font stack used by ≥ 10 characters is neither in the font pack, its alias table, a generic family, nor a loaded @font-face"
],
"selfTest": [
{
"injector": "fi.unknown-font",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.unknown-font",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.small-text",
"version": "2",
"severity": "minor",
"summary": "Readable text set below the minimum size.",
"rule": [
"fail (minor) when a non-decorative text block of ≥ 20 characters is under 12 px"
],
"selfTest": [
{
"injector": "fi.tiny-text",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.tiny-text",
"intensity": 3,
"expect": "fail"
}
]
}
]
}
|