Skip to content

LESS .media-width mixin accepts double and single quotes for client-side compilation, only single quotes for server compilation #34277

Closed
@edward-simpson

Description

@edward-simpson

Preconditions (*)

  1. Tested in 2.3.7

Steps to reproduce (*)

  1. Create a LESS file to get compiled into CSS
  2. Add two media queries, using one of each of the following:
    .media-width(@extremum, @break) when (@extremum = "min") and (@break = @screen__m) {

and

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {

  1. Compile using grunt
  2. Deploy to server using setup:static-content:deploy

Expected result (*)

  1. Both methods of compilation should achieve the same result

Actual result (*)

  1. For server side compilation, only the latter ('min', using single quotes) compiles successfully

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions