Skip to content

Stylesheet::Minifier should not remove spaces inside media query blocks #22

@gsmendoza

Description

@gsmendoza
Given Smurf 1.0.8
And I have the following content
  content = " @media screen and (min-width: 720px) { .flight-group .date h2 { display: none; } } "
When I include Minifier in the content
  class << content; include Smurf::Stylesheet::Minifier; end
And I remove the spaces inside the blocks of the content
  content.remove_spaces_inside_block
Then I should get
  " @media screen and (min-width: 720px) {.flight-group .date h2{display:none;} } "
But instead I get
  " @media screen and (min-width: 720px) {.flight-group.dateh2{display:none;} } "

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