import { IconHouseLine } from "@karrotmarket/react-monochrome-icon"; import { Box, Flex, Grid, ResponsivePair, Skeleton, useBreakpoint } from "@seed-design/react"; import { useFlow, type StaticActivityComponentType } from "@stackflow/react/future"; import type * as React from "react"; import { LeakCase } from "../components/IacvtProbe"; import { AppBar, AppBarBackButton, AppBarIconButton, AppBarLeft, AppBarMain, AppBarRight, } from "seed-design/ui/app-bar"; import { AppScreen, AppScreenContent } from "seed-design/ui/app-screen"; declare module "@stackflow/config" { interface Register { ActivityIacvtLeak: {}; } } // Shared styling for the measured child box. Kept as a spread (not a wrapper // component) so the probe `ref` attaches directly to a real forwardRef Box. const childBase = { bg: "palette.blue600", color: "palette.staticWhite", px: "x2", py: "x1", borderRadius: "r1", } as const; const mono: React.CSSProperties = { fontSize: 12, fontFamily: "monospace" }; const inlineMono: React.CSSProperties = { ...mono, display: "inline-block" }; const parentBox: React.CSSProperties = { background: "#fff7d6", border: "1px solid #d9a400" }; const Item = ({ label }: { label: string }) => ( {label} ); const Section = ({ title, children }: { title: string; children: React.ReactNode }) => ( {title} {children} ); const ActivityIacvtLeak: StaticActivityComponentType<"ActivityIacvtLeak"> = () => { const { push } = useFlow(); const breakpoint = useBreakpoint(); return ( IACVT Leak Check push("ActivityHome", {})}> WebKit 241433 상속 누수 검증 (현재 breakpoint: {breakpoint}) 각 케이스는 부모 Box가 어떤 값을 지정하고, 자식은 그 값을 지정하지 않는다. 판정은 자식에 상속되는 --seed-* 커스텀 프로퍼티를 직접 측정한다(그게 누수의 원천). 자식은 기본값으로 리셋되어야 하지만, 구형 WebKit(Safari <16.4, iOS 16.0.x)은 부모 값을 상속해버린다. 모던 브라우저에선 fix 유무와 무관하게 전부 OK다. 차이는 구형 iOS에서만 드러난다 — fix 없으면 LEAK, fix 있으면{" "} OK. 이 화면을 구형 iOS Safari에서 열어 검증한다.
c !== "auto"} > {(ref) => ( 자식 )} c !== "auto"} > {(ref) => ( 자식 )} c !== "auto"} > {(ref) => ( 자식 )} c !== "none"} > {(ref) => ( 자식의 max-width는 none이어야 한다 )} c !== "auto"} > {(ref) => ( 자식 )} c !== "none"} > {(ref) => ( 한 줄
두 줄
세 줄
)}
c !== "0px"} > {(ref) => ( )} c !== "row"} > {(ref) => ( )}
c !== "none"} > {(ref) => ( )} c !== "none"} > {(ref) => ( )}
c !== "auto"} > {(ref) => ( )} c !== "0px"} > {(ref) => ( )}
); }; export default ActivityIacvtLeak;