Files
Matthew Dean 432286970a [Needs reviews!] Mega test refactor (#4378)
* Migrate Less to use valid CSS

* Re-organize test structure

* Lots of test refactoring

* More test updates

* Add restructured tests

* WIP

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>

* More fixes to tests

* More test fixes

* All tests passing

* WIP fix tests

* Finished fixing browser tests

* Improve test coverage

* Add debug tests

* Add back debug tests to show equal test coverage

* Fix browser tests

* More test coverage

* Fix sourcemap absolute path for CI

* More source map normalization for Windows

* Fix source map normalization

* Another attempted fix for Windows

---------

Signed-off-by: Matthew Dean <matthew-dean@users.noreply.github.com>
2025-12-06 11:28:46 -08:00

115 lines
1.8 KiB
Plaintext

.main {
@layer {
&::before {
color: #f00;
}
}
}
@layer legacy {
@import "./import/layer-import.less";
}
@import url("/import/layer-import-2.css") layer(foo);
@import url("/import/layer-import-3.css") layer(responsive) supports(display: flex) screen and (max-width: 768px);
@import url("/import/layer-import-4.css") layer(print) print;
@import url("/import/layer-import-4.css") layer(print) print, (max-width: 600px);
@import url("/import/layer-import-5.css") layer(features) supports(display: grid);
@layer-name: primevue;
@layer @layer-name {
.test {
foo: bar;
}
}
@layer reset, base, components, utilities;
@layer reset {
*,
*::before,
*::after {
box-sizing: border-box;
}
}
@layer base {
body {
margin: 0;
font-family: system-ui, sans-serif;
header {
background-color: #f0f0f0;
padding: 1rem;
}
}
}
@layer components {
.button {
display: inline-block;
padding: 0.5rem 1rem;
background-color: blue;
color: white;
&:hover {
background-color: darkblue;
}
}
}
@layer utilities {
.text-center {
text-align: center;
}
.responsive {
width: 100%;
@media (min-width: 768px) {
width: 50%;
}
}
}
.parent {
color: black;
.child {
color: red;
}
&:hover {
background: lightgray;
}
}
@layer foo.baz {
.bar {
font-weight: bold;
}
}
@layer framework {
@layer layout {
.container {
display: grid;
gap: 2rem;
}
}
}
@layer framework.layout {
main {
padding: 2rem;
}
p {
margin-block: 1rem;
color: #555;
}
}