"""730-2 지킴 — 엑셀 보기 창은 좁은 폭에서 시트(위) · 목록(아래)로 쌓임(오른쪽 22rem 이 시트를 폭 0 으로 짓누르지 않음).""" import re from pathlib import Path CSS = (Path(__file__).parents[2] / "M02_MasterTemplete/M02_MasterTemplete_Hopyo.css").read_text( encoding="utf-8" ) def test_sheet_stacks_on_narrow_width(): m = re.search(r"@media \(max-width: (\d+)px\) \{\s*\.m02-hopyo-sheet \{(.*?)\}", CSS, re.S) assert m and int(m.group(1)) >= 700 assert "grid-template-columns: minmax(0, 1fr)" in m.group(2) assert "grid-template-rows" in m.group(2)