fix(anatomy): V1-2.2 refuse markers too small on the phone preview

Owner decision 2026-11-01: the scale bypass (viewBox blown up, drawing
scaled back) is closed by the visible size, 4 CSS px on the editor at
320 x 568 (equine junctions 4.97 px), verdict marker_too_small. A frame
is usable only where browsers draw it faithfully: edges within 2^20,
span from 1 unit, aspect 100, offset 256 spans; measured in 3 engines.
This commit is contained in:
bchanot committed 2026-11-01 01:28:48 +01:00
1 parent 9c606aa567
commit 96b99784b5
17 files changed
+944 -37

No files matched your search

+14 -5
View File
@@ -409,16 +409,25 @@ fn both_composers_frame_the_view_on_the_measured_frame() {
}
/// The edge slack follows the frame's span, never its offset: a frame far from the origin
/// keeps the same strictness (security review of the three-MEDIUM brief).
/// keeps the same strictness (security review of the three-MEDIUM brief). Since the owner
/// brief of 2026-11-01 a frame that far (`1e15`) is unusable (`f32` range rules); at the
/// largest offset still accepted (256 spans) the edge is as strict.
#[test]
fn a_frame_far_from_the_origin_is_as_strict() {
let far = |cx: f64| {
let far = |min_x: f64, cx: f64| {
with_view_box(
&with_geometry("main", circle(cx, 5.0, 1.0)),
0,
json!({ "min_x": 1e15, "min_y": 0, "width": 1000, "height": 10 }),
json!({ "min_x": min_x, "min_y": 0, "width": 10, "height": 10 }),
)
};
assert!(accepted(&far(1e15 + 500.0)));
assert!(!accepted(&far(1e15 + 5000.0)));
assert!(accepted(&far(2550.0, 2559.0)), "edge reached");
assert!(
!accepted(&far(2550.0, 2559.0 + 1e-6)),
"a millionth past the edge"
);
assert!(
!accepted(&far(1e15, 1e15 + 5.0)),
"a frame at 1e15 is not usable"
);
}