Skip to content

If the child component uses the media query style, it will not be loaded. Why #4331

Open
@nicky132

Description

@nicky132

To reproduce:

// less code here

Current behavior:

when we use less version Higher than 4.2.0, the proble is occurred,
which means the media css style of the child component is lost.
but when we use lower version,like 4.2.0,which works very well.

key css problem code is below here
@media screen and(max-width:1280px) { .form-process-table { width: 1200px; > div { width: 960px; } } }
demo project is here
https://codesandbox.io/p/devbox/j4rj4t?file=%2Fsrc%2Frouter%2Froutes.ts%3A12%2C5

you can visit the application by this way,https://j4rj4t-8001.csb.app/registeProcess

error:
Image
ok:
Image

Expected behavior:
work well

Environment information:

  • less version:4.2.2
  • nodejs version:20.12.0
  • operating system:windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions