~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/merge.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.first-transform() {
 
2
  transform+: rotate(90deg), skew(30deg);
 
3
}
 
4
.second-transform() {
 
5
  transform+: scale(2,4);
 
6
}
 
7
.third-transform() {
 
8
  transform: scaleX(45deg);
 
9
}
 
10
.fourth-transform() {
 
11
  transform+: scaleX(45deg);
 
12
}
 
13
.fifth-transform() {
 
14
  transform+: scale(2,4) !important;
 
15
}
 
16
.first-background() {
 
17
  background+: url(data://img1.png);
 
18
}
 
19
.second-background() {
 
20
  background+: url(data://img2.png);
 
21
}
 
22
 
 
23
.test1 {
 
24
  // Can merge values
 
25
  .first-transform();
 
26
  .second-transform();
 
27
}
 
28
.test2 {
 
29
  // Wont merge values without +: merge directive, for backwards compatibility with css
 
30
  .first-transform();
 
31
  .third-transform();
 
32
}
 
33
.test3 {
 
34
  // Wont merge values from two sources with different properties
 
35
  .fourth-transform();
 
36
  .first-background();
 
37
}
 
38
.test4 {
 
39
  // Wont merge values from sources that merked as !important, for backwards compatibility with css
 
40
  .first-transform();
 
41
  .fifth-transform();
 
42
}
 
43
.test5 {
 
44
  // Wont merge values from mixins that merked as !important, for backwards compatibility with css
 
45
  .first-transform();
 
46
  .second-transform() !important;
 
47
}
 
48
.test6 {
 
49
  // Ignores !merge if no peers found
 
50
  .second-transform();
 
51
}
 
52
 
 
53
.test-interleaved {
 
54
    transform+:  t1;
 
55
    background+: b1;
 
56
    transform+:  t2;
 
57
    background+: b2, b3;
 
58
    transform+:  t3;
 
59
}
 
60
~~~~~~~~~~