Skip to content

Releases: cburgmer/csscritic

2.0.1

21 Jan 22:34
Compare
Choose a tag to compare
  • Dependency updates

2.0.0

30 Oct 04:10
Compare
Choose a tag to compare

No new features

  • CLI runner removed, as csscritic focuses on the browser
  • all-in-one package updated with newest dependencies

1.3.1

30 Oct 04:07
Compare
Choose a tag to compare

Bug fixes

  • csscritic.js loader was not loading external dependencies with npm >= 3 flat dependencies (#77)

1.3.0

05 Jan 13:39
Compare
Choose a tag to compare

Features

  • Support :focus and :target selectors (see the add() API).
  • Show accept button on the left side for failing scenarious/missing reference (#71).
  • Show underlying error when page rendering failed (#65).

1.2.0

04 May 15:16
Compare
Choose a tag to compare

Features

  • The "DOM view" is now available for all comparison outcomes (passed, reference missing, failed). It can be accessed through the "eye" toggle button next to the page image.
  • The header now shrinks even more on scrolling, showing the full state on hover.

(No changes since 1.2.0-alpha)

1.2.0-alpha

19 Apr 18:03
Compare
Choose a tag to compare
1.2.0-alpha Pre-release
Pre-release

Features

  • The "DOM view" is now available for all comparison outcomes (passed, reference missing, failed). It can be accessed through the "eye" toggle button next to the page image.
  • The header now shrinks even more on scrolling, showing the full state on hover.

1.1.0

13 Apr 18:15
Compare
Choose a tag to compare

Features

  • A table of contents is shown when using the .component() grouping function.
  • The header now remains fixed at the top of the page while scrolling.

Bug fixes

  • Jumping to test cases from the progress bar would break for some characters when opening the page through the file:// protocol (#59).

1.0.0

01 Apr 19:58
Compare
Choose a tag to compare

Features

  • A run will now fail if no test cases have been provided (#55).

Bug fixes

  • When switching to the DOM view (iframe on double click) the correct breakpoint is now triggered (and the scroll bar hidden).
  • Text is now not selected anymore in Chrome when double clicking on the page image.
  • Media queries with ems are now supported in Chrome.
  • An issue under Linux with empty space showing on the right side (place for the scroll bar) has been fixed.
  • Superfluous scrollbars now don't show for Chrome under Linux.

API changes

  • Local storage as storage for reference images was depracted and has now been removed. Migration support has been dropped. If you need to migrate reference images from older versions of CSS Critic make sure to upgrade to 0.7.0 first before upgrading to 1.0.0.
  • The deprecated BasicHTMLReporter has been removed. Please use the NiceReporter (it's nice).
  • The depracted reporter method reporter.reportComparisonStarting() is not supported any more. It has been replaced by reporter.reportSelectedComparison().

0.7.0

12 Mar 21:41
Compare
Choose a tag to compare

Features

  • Initial support for Chrome.

  • A new desc option is available to describe the test case, e.g.

    csscritic.add({url: 'my_page.html', desc: 'Page in simple layout'})

  • A new .component() method allows grouping test cases, e.g.

    csscritic
        .component('My component')
        .add({url: 'my_page.html'})
        .add({url: 'another_page.html'})
    
  • Render errors are shown in the progress bar.

  • Double clicking the image of a green test will load the underlying page in an iframe. This should make debugging simpler.

  • Methods can be chained to simplify setup.

  • The code is now available via CDN from http://cdn.jsdelivr.net/csscritic/0.7.0/csscritic.allinone.js.

Bug fixes

  • rem sizes are now correctly applied.
  • Viewport size is now correctly calculated.
  • The progress bar is now consistently updated from left to right.

0.6.0

31 Jan 10:03
Compare
Choose a tag to compare

Features/Bug fixes

  • NiceReporter is now the default reporter and has received a few new features:
    • Errors while rendering are now shown.
    • Test case parameters are now shown next to the entry's title.
    • For multiple failing tests an accept all button is now available for accepting all failing entries or ones without a reference image at once.
    • Entries can be selected by clicking on the title to improve feedback cycles.
    • While the runner executes, the entry's reference image is shown until the page finished rendering.
    • The constructor now accepts a dom node as a container.
    • Some more UI improvements.
  • BasicHTMLReporter is deprecated and will be removed in the next major version.
  • Randomly failing tests due to unstable font-rendering on certain Linux installations should be a thing of the past. The minimal color difference of 1 for RGB values is now tolerated and will not fail tests.

API changes

  • The reporter's reportComparisonStarting() was changed to reportSelectedComparison() and additionally receives the reference image. The old method name is deprecated and will be removed in an upcoming release.
  • Reporters can receive notifications about deselected tests (see selection feature above) via the new interface reportDeselectedComparison().

Known issues

  • Upgrading on case-insensitive file systems (Mac OSX) can lead to mangled files names. Removing the old files followed by installing from scratch should work around the issue.
  • Selection of entries will not generate a nice URL when opened over file:// URLs due to https://bugzilla.mozilla.org/show_bug.cgi?id=1005634