QA 06 — Boxes & Reliefs
- How to run
- Checklist
- 6.1 Simple box 1px — four sides visible
- 6.2 Box 3px with custom color — correct thickness and color
- 6.3 Raised relief — light top-left, dark bottom-right
- 6.4 Sunken relief — dark top-left, light bottom-right
- 6.5 Relief corners — must appear dark, not light
- 6.6 Relief on mode-line — consistent in light and dark themes
- 6.7 Box line widths — horizontal vs vertical can differ
How to run
emacs --no-init-file -l qa/06-boxes-reliefs/test.el EMACS_GPU_DISABLE=1 emacs --no-init-file -l qa/06-boxes-reliefs/test.el
Checklist
TODO 6.1 Simple box 1px — four sides visible
A 1px border must be visible on all four sides of the text span. Failure: one or more sides missing, or the border appears inside the text.
TODO 6.2 Box 3px with custom color — correct thickness and color
All four sides must be exactly 3px wide and in the specified color. Failure: thickness varies between sides, or color is wrong.
TODO 6.3 Raised relief — light top-left, dark bottom-right
Top and left edges must be lighter than the face background; bottom and right must be darker. Failure: edges are the wrong colors (inverted), or all the same shade.
TODO 6.4 Sunken relief — dark top-left, light bottom-right
Top and left edges must be darker; bottom and right must be lighter. Failure: looks raised instead of sunken.
TODO 6.5 Relief corners — must appear dark, not light
At the corner pixels where the light and dark edges of a raised box overlap, the resulting color must be dark (the dark edge wins). Failure: corners appear light or have a mixed artifact.
TODO 6.6 Relief on mode-line — consistent in light and dark themes
(load-theme 'modus-vivendi t) and check the mode-line relief.
Then (load-theme 'modus-operandi t) and check again.
Failure: relief colors become inverted or look broken in one of the themes.
TODO 6.7 Box line widths — horizontal vs vertical can differ
Use (:box (:line-width (2 . 4))) to specify different H/V widths.
Failure: both widths are treated the same.