Skip to content

[CLEANUP] Use spaces for indenting the fixture CSS files #824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/fixtures/-fault-tolerance.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.test1 {
//gaga: hello;
//gaga: hello;
}

.test2 {
*hello: 1;
hello: 2.2;
hello: 2000000000000.2;
*hello: 1;
hello: 2.2;
hello: 2000000000000.2;
}

#test {
#hello: 1}
#hello: 1}

#test2 {
help: none;
help: none;
4 changes: 2 additions & 2 deletions tests/fixtures/1readme.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
font-family: "CrassRoots";
src: url("../media/cr.ttf")
}

html, body {
font-size: 1.6em
font-size: 1.6em
}
6 changes: 3 additions & 3 deletions tests/fixtures/2readme.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#header {
margin: 10px 2em 1cm 2%;
font-family: Verdana, Helvetica, "Gill Sans", sans-serif;
color: red !important;
margin: 10px 2em 1cm 2%;
font-family: Verdana, Helvetica, "Gill Sans", sans-serif;
color: red !important;
}
22 changes: 11 additions & 11 deletions tests/fixtures/atrules.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
@charset "utf-8";

@font-face {
font-family: "CrassRoots";
src: url("../media/cr.ttf")
font-family: "CrassRoots";
src: url("../media/cr.ttf")
}

html, body {
font-size: -0.6em
font-size: -0.6em
}

@keyframes mymove {
from { top: 0px; }
to { top: 200px; }
from { top: 0px; }
to { top: 200px; }
}

@-moz-keyframes some-move {
from { top: 0px; }
to { top: 200px; }
from { top: 0px; }
to { top: 200px; }
}

@supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {
body {
font-family: 'Helvetica';
}
body {
font-family: 'Helvetica';
}
}

@page :pseudo-class {
Expand Down Expand Up @@ -54,4 +54,4 @@ html, body {

@region-style #intro {
p { color: blue; }
}
}
4 changes: 2 additions & 2 deletions tests/fixtures/calc.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
div { width: calc(100% / 4); }
div { margin-top: calc(-120% - 4px); }
div {
height: -webkit-calc(9/16 * 100%)!important;
width: -moz-calc((50px - 50%)*2);
height: -webkit-calc(9/16 * 100%)!important;
width: -moz-calc((50px - 50%)*2);
}
div { width: calc(50% - ( ( 4% ) * 0.5 ) ); }
14 changes: 7 additions & 7 deletions tests/fixtures/case-insensitivity.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
}

#myid {
CaSe: insensitive !imPORTANT;
frequency: 30hz;
font-size: 1EM;
color: RGB(255, 255, 0);
color: hSL(40, 40%, 30%);
font-Family: Arial; /* The value needs to remain capitalized */
}
CaSe: insensitive !imPORTANT;
frequency: 30hz;
font-size: 1EM;
color: RGB(255, 255, 0);
color: hSL(40, 40%, 30%);
font-Family: Arial; /* The value needs to remain capitalized */
}
34 changes: 17 additions & 17 deletions tests/fixtures/colortest.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#mine {
color: red;
border-color: rgb(10, 100, 230);
border-color: rgba(10, 100, 231, 0.3);
outline-color: #222;
background-color: #232323;
color: red;
border-color: rgb(10, 100, 230);
border-color: rgba(10, 100, 231, 0.3);
outline-color: #222;
background-color: #232323;
}

#yours {
background-color: hsl(220, 10%, 220%);
background-color: hsla(220, 10%, 220%, 0.3);
outline-color: #22;
background-color: hsl(220, 10%, 220%);
background-color: hsla(220, 10%, 220%, 0.3);
outline-color: #22;
}

#variables {
background-color: rgb(var(--some-rgb));
background-color: rgb(var(--r), var(--g), var(--b));
background-color: rgb(255, var(--g), var(--b));
background-color: rgb(255, 255, var(--b));
background-color: rgb(255, var(--rg));
background-color: rgb(var(--some-rgb));
background-color: rgb(var(--r), var(--g), var(--b));
background-color: rgb(255, var(--g), var(--b));
background-color: rgb(255, 255, var(--b));
background-color: rgb(255, var(--rg));

background-color: hsl(var(--some-hsl));
background-color: hsl(var(--some-hsl));
}

#variables-alpha {
background-color: rgba(var(--some-rgb), 0.1);
background-color: rgba(var(--some-rg), 255, 0.1);
background-color: hsla(var(--some-hsl), 0.1);
background-color: rgba(var(--some-rgb), 0.1);
background-color: rgba(var(--some-rg), 255, 0.1);
background-color: hsla(var(--some-hsl), 0.1);
}
6 changes: 3 additions & 3 deletions tests/fixtures/escaped-tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* Special case function-like tokens, with an escape backslash followed by a non-newline and non-hex digit character, should be parsed as the appropriate \Sabberworm\CSS\Value\ type
*/
body {
background: u\rl("//example.org/picture.jpg");
height: ca\lc(100% - 1px);
}
background: u\rl("//example.org/picture.jpg");
height: ca\lc(100% - 1px);
}
10 changes: 5 additions & 5 deletions tests/fixtures/ie.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.nav-thumb-wrapper:hover img, a.activeSlide img {
filter: alpha(opacity=100);
-moz-opacity: 1;
-khtml-opacity: 1;
opacity: 1;
}
filter: alpha(opacity=100);
-moz-opacity: 1;
-khtml-opacity: 1;
opacity: 1;
}
4 changes: 2 additions & 2 deletions tests/fixtures/inner-color.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
test {
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#006cad), to(hsl(202, 100%, 49%)));
}
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#006cad), to(hsl(202, 100%, 49%)));
}
4 changes: 2 additions & 2 deletions tests/fixtures/missing-property-value.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div {
display: inline-block;
display:
display: inline-block;
display:
}
6 changes: 3 additions & 3 deletions tests/fixtures/namespaces.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@


foo|test {
gaga: 1;
gaga: 1;
}

|test {
gaga: 2;
}
gaga: 2;
}
12 changes: 6 additions & 6 deletions tests/fixtures/nested.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
html {
some: -test(val1);
some: -test(val1);
}

html {
some-other: -test(val1);
some-other: -test(val1);
}

@media screen {
html {
some: -test(val2);
}
html {
some: -test(val2);
}
}

#unrelated {
other: yes;
other: yes;
}
4 changes: 2 additions & 2 deletions tests/fixtures/slashed.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.test {
font: 12px/1.5 Verdana, Arial, sans-serif;
border-radius: 5px 10px 5px 10px / 10px 5px 10px 5px;
font: 12px/1.5 Verdana, Arial, sans-serif;
border-radius: 5px 10px 5px 10px / 10px 5px 10px 5px;
}
2 changes: 1 addition & 1 deletion tests/fixtures/specificity.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
.help:hover,
li.green,
ol li::before {
font-family: Helvetica;
font-family: Helvetica;
}
4 changes: 2 additions & 2 deletions tests/fixtures/url.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body { background: #FFFFFF url("https://somesite.com/images/someimage.gif") repeat top center; }
body {
background-url: url("https://somesite.com/images/someimage.gif");
}
background-url: url("https://somesite.com/images/someimage.gif");
}
18 changes: 9 additions & 9 deletions tests/fixtures/values.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#header {
margin: 10px 2em 1cm 2%;
font-family: Verdana, Helvetica, "Gill Sans", sans-serif;
font-size: 10px;
color: red !important;
background-color: green;
background-color: rgba(0,128,0,0.7);
frequency: 30Hz;
margin: 10px 2em 1cm 2%;
font-family: Verdana, Helvetica, "Gill Sans", sans-serif;
font-size: 10px;
color: red !important;
background-color: green;
background-color: rgba(0,128,0,0.7);
frequency: 30Hz;
transform: rotate(1turn);
}

body {
color: green;
font: 75% "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
color: green;
font: 75% "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
}
2 changes: 1 addition & 1 deletion tests/fixtures/whitespace.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.test {
background-image : url ( 4px ) ;
background-image : url ( 4px ) ;
}