Skip to content

::before pseudo element with display:block stops balancing #150

@christianmagill

Description

@christianmagill

Original Title: ::before pseudo element used as accent stops balancing.

Expected Behaviour

I'd like to use graphical accents for a number of headlines. If I add these using a ::before pseudo-element, I'd like the text to continue to balance.

Actual Behaviour

When I include a ::before pseudo-element as an accent, the text is not balanced.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

3.3.0 / Testing on Chrome (Mac OS)

Sample Code that illustrates the problem

h2::before {
  content: "";
  display: block;
  background: url("images/graphic-wave.png");
  background-size: contain;
  width: 100px;
  height: 26px;
  margin-bottom: 32px;
}

balanceText('h2', {watch: true});

Logs taken while reproducing problem

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