-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add Less.js v3.13 spec to less.php test suite
Bug: T359105 Change-Id: I05dd68b4c5fa4644ad857bef88c59cccf904e110
- Loading branch information
Showing
281 changed files
with
28,476 additions
and
0 deletions.
There are no files selected for viewing
7,665 changes: 7,665 additions & 0 deletions
7,665
test/Fixtures/lessjs-3.13.1/css/3rd-party/bootstrap4.css
Large diffs are not rendered by default.
Oops, something went wrong.
8,955 changes: 8,955 additions & 0 deletions
8,955
test/Fixtures/lessjs-3.13.1/css/3rd-party/uikit.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.no-math { | ||
root: calc(100% - 30px); | ||
root2: calc(100% - 40px); | ||
width: calc(50% + (25vh - 20px)); | ||
height: calc(50% + (25vh - 20px)); | ||
min-height: calc(10vh + calc(5vh)); | ||
foo: 3 calc(3 + 4) 11; | ||
bar: calc(1 + 20%); | ||
} | ||
.b { | ||
one: calc(100% - 20px); | ||
two: calc(100% - (10px + 10px)); | ||
three: calc(100% - (3 * 1)); | ||
four: calc(100% - (3 * 1)); | ||
nested: calc(calc(2.25rem + 2px) - 1px * 2); | ||
} | ||
.c { | ||
height: calc(100% - ((10px * 3) + (10px * 2))); | ||
} | ||
.correctly-exit-calc-mode h2 { | ||
width: 10px; | ||
} | ||
.correctly-exit-calc-mode div { | ||
width: calc(100px * 2); | ||
} | ||
.correctly-exit-calc-mode h1 { | ||
color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@charset "UTF-8"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
#yelow #short { | ||
color: #fea; | ||
} | ||
#yelow #long { | ||
color: #ffeeaa; | ||
} | ||
#yelow #rgba { | ||
color: rgba(255, 238, 170, 0.1); | ||
} | ||
#yelow #argb { | ||
color: #1affeeaa; | ||
} | ||
#blue #short { | ||
color: #00f; | ||
} | ||
#blue #long { | ||
color: #0000ff; | ||
} | ||
#blue #rgba { | ||
color: rgba(0, 0, 255, 0.1); | ||
} | ||
#blue #argb { | ||
color: #1a0000ff; | ||
} | ||
#alpha #hsla { | ||
color: hsla(11, 20%, 20%, 0.6); | ||
} | ||
#overflow .a { | ||
color: #000000; | ||
} | ||
#overflow .b { | ||
color: #ffffff; | ||
} | ||
#overflow .c { | ||
color: #ffffff; | ||
} | ||
#overflow .d { | ||
color: #00ff00; | ||
} | ||
#overflow .e { | ||
color: rgba(0, 31, 255, 0.42); | ||
} | ||
#grey { | ||
color: #c8c8c8; | ||
} | ||
#aa3333 { | ||
color: #aa3333; | ||
} | ||
#bb8080 { | ||
color: hsl(0, 30%, 62%); | ||
} | ||
#ccff00 { | ||
color: hsl(72, 100%, 50%); | ||
} | ||
.lightenblue { | ||
color: #3333ff; | ||
} | ||
.darkenblue { | ||
color: #0000cc; | ||
} | ||
.unknowncolors { | ||
color: blue2; | ||
border: 2px solid superred; | ||
} | ||
.transparent { | ||
color: transparent; | ||
background-color: rgba(0, 0, 0, 0); | ||
} | ||
#alpha #fromvar { | ||
opacity: 0.7; | ||
} | ||
#alpha #short { | ||
opacity: 1; | ||
} | ||
#alpha #long { | ||
opacity: 1; | ||
} | ||
#alpha #rgba { | ||
opacity: 0.2; | ||
} | ||
#alpha #hsl { | ||
opacity: 1; | ||
} | ||
#percentage { | ||
color: 255; | ||
border-color: rgba(255, 0, 0, 0.5); | ||
} | ||
#rrggbbaa { | ||
test-1: #55FF5599; | ||
test-2: #5F59; | ||
test-3: rgba(136, 255, 136, 0.6); | ||
test-4: rgba(85, 255, 85, 0.1); | ||
test-5: rgba(85, 255, 85, 0.6); | ||
test-6: rgba(85, 255, 85, 0.6); | ||
test-7: rgba(85, 255, 85, 0.5); | ||
test-8: rgba(var(--color-accent), 0.2); | ||
test-9: rgb(var(--color-accent)); | ||
test-9: hsla(var(--color-accent)); | ||
test-10: #55FF5599; | ||
test-11: hsla(120, 100%, 66.66666667%, 0.6); | ||
test-12: hsla(120, 100%, 66.66666667%, 0.5); | ||
--semi-transparent-dark-background: #001e00ee; | ||
--semi-transparent-dark-background-2: #001e00; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/******************\ | ||
* * | ||
* Comment Header * | ||
* * | ||
\******************/ | ||
/* | ||
Comment | ||
*/ | ||
/* | ||
* Comment Test | ||
* | ||
* - cloudhead (http://cloudhead.net) | ||
* | ||
*/ | ||
/* Colors | ||
* ------ | ||
* #EDF8FC (background blue) | ||
* #166C89 (darkest blue) | ||
* | ||
* Text: | ||
* #333 (standard text) // A comment within a comment! | ||
* #1F9EC9 (standard link) | ||
* | ||
*/ | ||
/* @group Variables | ||
------------------- */ | ||
#comments, | ||
.comments { | ||
/**/ | ||
color: red; | ||
/* A C-style comment */ | ||
/* A C-style comment */ | ||
background-color: orange; | ||
font-size: 12px; | ||
/* lost comment */ | ||
content: "content"; | ||
border: 1px solid black; | ||
padding: 0; | ||
margin: 2em; | ||
} | ||
/* commented out | ||
#more-comments { | ||
color: grey; | ||
} | ||
*/ | ||
.selector, | ||
.lots, | ||
.comments { | ||
color: grey, /* blue */ orange; | ||
-webkit-border-radius: 2px /* webkit only */; | ||
-moz-border-radius: 8px /* moz only with operation */; | ||
} | ||
.test-rule { | ||
color: 1px; | ||
} | ||
.sr-only-focusable { | ||
clip: auto; | ||
} | ||
@-webkit-keyframes hover { | ||
/* and Chrome */ | ||
0% { | ||
color: red; | ||
} | ||
} | ||
#last { | ||
color: blue; | ||
} | ||
/* */ | ||
/* { */ | ||
/* */ | ||
/* */ | ||
/* */ | ||
#div { | ||
color: #A33; | ||
} | ||
/* } */ | ||
/*by block */ | ||
#output-block { | ||
comment: /* // Not commented out // */; | ||
} | ||
/*comment on last line*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@-webkit-keyframes hover { | ||
/* Safari and Chrome */ | ||
} | ||
.bg { | ||
background-image: linear-gradient(#333 /*{comment}*/, #111); | ||
} | ||
#planadvisor, | ||
.first, | ||
.planning { | ||
margin: 10px; | ||
total-width: 96em; | ||
} | ||
.some-inline-comments { | ||
a: yes /* comment */; | ||
b: red /* comment */; | ||
c: yes /* comment */; | ||
d: red /* comment */; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
.comma-delimited { | ||
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow; | ||
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset; | ||
-webkit-transform: rotate(0deg); | ||
} | ||
@font-face { | ||
font-family: Headline; | ||
unicode-range: U+??????, U+0???, U+0-7F, U+A5; | ||
} | ||
.other { | ||
-moz-transform: translate(0, 11em) rotate(-90deg); | ||
transform: rotateX(45deg); | ||
} | ||
.item[data-cra_zy-attr1b-ut3=bold] { | ||
font-weight: bold; | ||
} | ||
p:not([class*="lead"]) { | ||
color: black; | ||
} | ||
input[type="text"].class#id[attr=32]:not(1) { | ||
color: inherit; | ||
} | ||
div#id.class[a=1][b=2].class:not(1) { | ||
color: inherit; | ||
} | ||
ul.comma > li:not(:only-child)::after { | ||
color: inherit; | ||
} | ||
ol.comma > li:nth-last-child(2)::after { | ||
color: inherit; | ||
} | ||
li:nth-child(4n+1), | ||
li:nth-child(-5n), | ||
li:nth-child(-n+2) { | ||
color: inherit; | ||
} | ||
a[href^="http://"] { | ||
color: black; | ||
} | ||
a[href$="http://"] { | ||
color: black; | ||
} | ||
form[data-disabled] { | ||
color: black; | ||
} | ||
p::before { | ||
color: black; | ||
} | ||
#issue322 { | ||
-webkit-animation: anim2 7s infinite ease-in-out; | ||
} | ||
@-webkit-keyframes frames { | ||
0% { | ||
border: 1px; | ||
} | ||
5.5% { | ||
border: 2px; | ||
} | ||
100% { | ||
border: 3px; | ||
} | ||
} | ||
@keyframes fontbulger1 { | ||
to { | ||
font-size: 15px; | ||
} | ||
from, | ||
to { | ||
font-size: 12px; | ||
} | ||
0%, | ||
100% { | ||
font-size: 12px; | ||
} | ||
} | ||
@supports ( box-shadow: 2px 2px 2px black ) or | ||
( -moz-box-shadow: 2px 2px 2px black ) { | ||
.outline { | ||
box-shadow: 2px 2px 2px black; | ||
-moz-box-shadow: 2px 2px 2px black; | ||
} | ||
} | ||
@-x-document url-prefix(""github.com"") { | ||
h1 { | ||
color: red; | ||
} | ||
} | ||
@viewport { | ||
font-size: 10px; | ||
} | ||
@namespace foo url(http://www.example.com); | ||
foo|h1 { | ||
color: blue; | ||
} | ||
foo|* { | ||
color: yellow; | ||
} | ||
*|h1 { | ||
color: green; | ||
} | ||
h1 { | ||
color: green; | ||
} | ||
.upper-test { | ||
UpperCaseProperties: allowed; | ||
} | ||
@host { | ||
div { | ||
display: block; | ||
} | ||
} | ||
::distributed(input::placeholder) { | ||
color: #b3b3b3; | ||
} | ||
.shadow > .dom, | ||
body > .shadow { | ||
display: done; | ||
} | ||
:host(.sel .a), | ||
:host-context(.sel .b), | ||
.sel > .b, | ||
::content .sel { | ||
type: shadow-dom; | ||
} | ||
* b { | ||
c: 'd'; | ||
} | ||
* b[e] { | ||
f: 'g'; | ||
} | ||
#issue2066 { | ||
background: url('/images/icon-team.svg') 0 0 / contain; | ||
} | ||
@counter-style triangle { | ||
system: cyclic; | ||
symbols: ‣; | ||
suffix: " "; | ||
} | ||
@-ms-viewport { | ||
} | ||
@unknown foo 42 (bar) { | ||
x { | ||
y: z; | ||
} | ||
} | ||
@unknown foo 43; |
Oops, something went wrong.