Skip to content

Surface removed pseudo-elements and thin lines in dom output #28

Closed

Description

@tmashara

What
A 1px divider drawn by ::before disappeared, because a positioned sibling now painted over it. The row showed 99.97% 1–2 reg, and dom paired the wrong elements (div.wrapper padding-top 0px→80px) after the wrapper structure changed. Nothing pointed at the lost line, and it was dismissed as noise.

Why
Thin dividers, borders and focus rings are small in pixel count but matter visually. A high score makes them easy to wave through.

How

  • In the DOM pass, compare ::before / ::after (content, size, background) and report -sel::before / +sel::before.
  • For a region that's a full-width 1–2px horizontal run, label it line -1px@y… instead of a generic reg.
  • When elements are matched across a structure change, say so (e.g. (re-parented)), so a mismatched pairing isn't read as the cause.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions