Skip to content

feat: screenshot tests for result #7

@sashasushko

Description

@sashasushko

Optimization of the fallback font is based on recalculation of its parameters. One of them is the width of the font. Unfortunately, current optimization is not one hundred percent and requires constant improvement. Screenshot tests would help in this.

How it can work

  • We have some page with two block overlay. For bottom block we use font-face with fallback font. For top block - with real font (see reference)
  • Then we run screenshot tests for getting the standard once.
  • After some changes in calculation logic we get new @font-face, place it to this page and run screenshot tests again.
  • Then we look at the results and decide - keep changes or revert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions