COMARK0123 · warning
comark/annotate/compare-viewport-mismatch
Capture both sides of a ::compare at one viewport
Screenshots captured at different sizes lay the page out differently, so what moved between them can't be told from what the size changed. Capture both at the same viewport.
Incorrect
::compare
:::screenshot{src="/pond-before.png" alt="The pond with no fence" viewport="1440x900"}
:::
:::screenshot{src="/pond-after.png" alt="The pond with a fence" viewport="1280x800"}
:::
:: lint-comark example.mdexample.md:1:1 comark/annotate/compare-viewport-mismatchRecapture both at the same viewport.✖ 1 problem
Correct
::compare
:::screenshot{src="/pond-before.png" alt="The pond with no fence" viewport="1440x900"}
:::
:::screenshot{src="/pond-after.png" alt="The pond with a fence" viewport="1440x900"}
:::
:: lint-comark example.md✔ No problems