Esc

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"}
:::
::
md
lint-comark example.mdexample.md:1:1 comark/annotate/compare-viewport-mismatchcompare 1: screenshot "/pond-before.png" was captured at 1440x900 and screenshot "/pond-after.png" at 1280x800, so they can't be compared.Recapture 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"}
:::
::
md
lint-comark example.md✔ No problems