News for hackers. Stuff that matters.
Re:An image diff is worth a thousand words by egypturnash on Thursday June 29, 2017 @04:35PM (#14666655)
I know the main thrust of the post is building a complex visual test harness, but:

    .ellipsis {
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
> In both my application code and my unit test, I’ve mistakenly written .ellipses. Unfortunately, all the unit tests pass.

I kinda feel like a graceful way to handle this particular error is to acknowledge that "ellipsis" is a word that is super easy to misspell, and either declare this class to apply to both the proper word and the misspelling that's going to constantly get scattered throughout the codebase, or to pick another name entirely such as ".truncated" or, I dunno, ".elided" maybe?

Naming stuff is hard.

Re:An image diff is worth a thousand words by wodenokoto on Thursday June 29, 2017 @08:48PM (#14667945)
Shouldn't the unit test highlight unused css properties, as well as elements linked to non-existent css properties?

I feel like such a mistake ought to be caught by a unit test.