compass 0.10.0.rc3 → 0.10.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. data/Rakefile +30 -102
  2. data/VERSION.yml +1 -1
  3. data/examples/css3/bootstrap.rb +3 -0
  4. data/examples/css3/clean.rb +2 -0
  5. data/examples/downloader.rb +2 -2
  6. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +1 -2
  7. data/frameworks/{compass → _compass_deprecated_imports}/stylesheets/compass/_misc.scss +1 -0
  8. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +1 -1
  9. data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -1
  10. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +47 -32
  11. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +25 -45
  12. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +6 -3
  13. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +31 -24
  14. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +45 -35
  15. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +2 -1
  16. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +21 -28
  17. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +66 -137
  18. data/frameworks/compass/stylesheets/compass/_css3.scss +1 -0
  19. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +23 -5
  20. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +22 -5
  21. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +8 -10
  22. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +36 -16
  23. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +14 -7
  24. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +4 -8
  25. data/frameworks/compass/stylesheets/compass/css3/_box.scss +89 -0
  26. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +19 -40
  27. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +3 -1
  28. data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +2 -0
  29. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +5 -6
  30. data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +15 -9
  31. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
  32. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +10 -2
  33. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +34 -17
  34. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +19 -21
  35. data/frameworks/compass/stylesheets/compass/utilities/_print.scss +14 -15
  36. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +27 -17
  37. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -9
  38. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -2
  39. data/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +12 -6
  40. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +24 -12
  41. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +0 -4
  42. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +5 -5
  43. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +15 -13
  44. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +1 -1
  45. data/lib/compass.rb +6 -1
  46. data/lib/compass/commands/help.rb +1 -0
  47. data/lib/compass/configuration/data.rb +10 -2
  48. data/lib/compass/exec/helpers.rb +3 -0
  49. data/lib/compass/sass_extensions/functions/selectors.rb +21 -0
  50. data/lib/compass/version.rb +12 -21
  51. data/test/compass_test.rb +1 -1
  52. data/test/fixtures/stylesheets/blueprint/css/typography.css +8 -19
  53. data/test/fixtures/stylesheets/compass/css/box.css +90 -0
  54. data/test/fixtures/stylesheets/compass/sass/box.sass +50 -0
  55. data/test/sass_extensions_test.rb +19 -26
  56. metadata +42 -62
  57. data/CHANGELOG.markdown +0 -881
  58. data/REVISION +0 -1
  59. data/examples/css3/extensions/compass-colors/README.markdown +0 -50
  60. data/examples/css3/extensions/compass-colors/VERSION.yml +0 -5
  61. data/examples/css3/extensions/compass-colors/example/config.rb +0 -13
  62. data/examples/css3/extensions/compass-colors/example/src/_split_compliment_theme.sass +0 -28
  63. data/examples/css3/extensions/compass-colors/example/src/screen.sass +0 -40
  64. data/examples/css3/extensions/compass-colors/lib/compass-colors.rb +0 -9
  65. data/examples/css3/extensions/compass-colors/lib/compass-colors/compass_extension.rb +0 -7
  66. data/examples/css3/extensions/compass-colors/lib/compass-colors/hsl.rb +0 -109
  67. data/examples/css3/extensions/compass-colors/lib/compass-colors/sass_extensions.rb +0 -112
  68. data/examples/css3/extensions/compass-colors/spec/approximate_color_matching.rb +0 -43
  69. data/examples/css3/extensions/compass-colors/spec/sass_extensions_spec.rb +0 -54
  70. data/examples/css3/extensions/compass-colors/templates/analogous/_theme.sass +0 -28
  71. data/examples/css3/extensions/compass-colors/templates/analogous/manifest.rb +0 -1
  72. data/examples/css3/extensions/compass-colors/templates/basic/_theme.sass +0 -7
  73. data/examples/css3/extensions/compass-colors/templates/basic/manifest.rb +0 -1
  74. data/examples/css3/extensions/compass-colors/templates/complementary/_theme.sass +0 -20
  75. data/examples/css3/extensions/compass-colors/templates/complementary/manifest.rb +0 -1
  76. data/examples/css3/extensions/compass-colors/templates/split_complement/_theme.sass +0 -28
  77. data/examples/css3/extensions/compass-colors/templates/split_complement/manifest.rb +0 -1
  78. data/examples/css3/extensions/compass-colors/templates/triadic/_theme.sass +0 -28
  79. data/examples/css3/extensions/compass-colors/templates/triadic/manifest.rb +0 -1
  80. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  81. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  82. data/examples/logo/logo.html.haml +0 -40
  83. data/examples/logo/src/ie.scss +0 -5
  84. data/examples/logo/src/print.scss +0 -3
  85. data/examples/logo/src/screen.scss +0 -28
@@ -4,53 +4,63 @@
4
4
  @mixin blueprint-inline-form {
5
5
  line-height: 3;
6
6
  p {
7
- margin-bottom: 0; } }
7
+ margin-bottom: 0;
8
+ }
9
+ }
8
10
 
9
11
  @mixin blueprint-form {
10
12
  @include blueprint-form-layout;
11
13
  @include blueprint-form-borders;
12
- @include blueprint-form-sizes; }
14
+ @include blueprint-form-sizes;
15
+ }
13
16
 
14
17
  @mixin blueprint-form-layout {
15
- label {
16
- font-weight: bold; }
17
- fieldset {
18
- padding: 1.4em;
19
- margin: 0 0 1.5em 0; }
20
- legend {
21
- font-weight: bold;
22
- font-size: 1.2em; }
18
+ label { font-weight: bold; }
19
+ fieldset { padding: 1.4em; margin: 0 0 1.5em 0; }
20
+ legend { font-weight: bold; font-size: 1.2em; }
23
21
  input {
24
- &.text, &.title, &[type=text], &[type=password] {
25
- margin: 0.5em 0;
26
- background-color: white;
27
- padding: 5px; }
28
- &.title {
29
- font-size: 1.5em; }
30
- &[type=checkbox], &.checkbox,
31
- &[type=radio], &.radio {
32
- position: relative;
33
- top: 0.25em; } }
34
- textarea {
35
- margin: 0.5em 0;
36
- padding: 5px; }
37
- select {
38
- margin: 0.5em 0; } }
22
+ &.text,
23
+ &.title,
24
+ &[type=text],
25
+ &[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; }
26
+ &.title { font-size: 1.5em; }
27
+ &[type=checkbox],
28
+ &.checkbox,
29
+ &[type=radio],
30
+ &.radio { position: relative; top: 0.25em; }
31
+ }
32
+ textarea { margin: 0.5em 0; padding: 5px; }
33
+ select { margin: 0.5em 0; }
34
+ }
39
35
 
40
- @mixin blueprint-form-sizes($input_width: 300px, $textarea_width: 390px, $textarea_height: 250px) {
36
+ @mixin blueprint-form-sizes
37
+ (
38
+ $input_width: 300px,
39
+ $textarea_width: 390px,
40
+ $textarea_height: 250px
41
+ ) {
41
42
  input {
42
- &.text, &.title, &[type=text], &[type=password] {
43
- width: $input_width; } }
44
- textarea {
45
- width: $textarea_width;
46
- height: $textarea_height; } }
43
+ &.text,
44
+ &.title,
45
+ &[type=text],
46
+ &[type=password] { width: $input_width; }
47
+ }
48
+ textarea { width: $textarea_width; height: $textarea_height; }
49
+ }
47
50
 
48
- @mixin blueprint-form-borders($unfocused_border_color: #bbbbbb, $focus_border_color: #666666, $fieldset_border_color: #cccccc) {
51
+ @mixin blueprint-form-borders
52
+ (
53
+ $unfocused_border_color: #bbbbbb,
54
+ $focus_border_color: #666666,
55
+ $fieldset_border_color: #cccccc
56
+ ) {
49
57
  fieldset {
50
58
  border: 1px solid $fieldset_border_color; }
51
59
  input.text, input.title, input[type=text], input[type=password],
52
- textarea,
53
- select {
60
+ textarea, select {
54
61
  border: 1px solid $unfocused_border_color;
55
62
  &:focus {
56
- border: 1px solid $focus_border_color; } } }
63
+ border: 1px solid $focus_border_color;
64
+ }
65
+ }
66
+ }
@@ -16,6 +16,7 @@
16
16
  // --------------------------------------------------------------
17
17
 
18
18
  @import "compass/utilities/general/float";
19
+ @import "compass/utilities/general/clearfix";
19
20
 
20
21
  // The number of columns in the grid.
21
22
  $blueprint_grid_columns: 24 !default;
@@ -206,7 +207,7 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
206
207
  position: relative; }
207
208
 
208
209
  @mixin push-margins($n) {
209
- margin: 0 -$blueprint_grid_outer_width * $n 1.5em $blueprint_grid_outer_width * $n; }
210
+ margin: 0 (-$blueprint_grid_outer_width * $n) 1.5em $blueprint_grid_outer_width * $n; }
210
211
 
211
212
  // mixin to a column to push it n columns to the right
212
213
  @mixin push($n) {
@@ -1,18 +1,19 @@
1
1
  @mixin no-link-icon {
2
2
  background: transparent none !important;
3
- padding: 0 !important;
4
- margin: 0 !important; }
3
+ padding: 0 !important;
4
+ margin: 0 !important;
5
+ }
5
6
 
6
7
  @mixin link-icon-base {
7
- padding: 2px 22px 2px 0;
8
- margin: -2px 0;
9
- background-repeat: no-repeat;
10
- background-position: right center; }
8
+ padding: 2px 22px 2px 0;
9
+ margin: -2px 0;
10
+ background-repeat: no-repeat;
11
+ background-position: right center;
12
+ }
11
13
 
12
- @mixin link-icon($name, $include_base: true) {
13
- @if $include_base {
14
- @include link-icon-base; }
15
- background-image: image_url("link_icons/#{$name}"); }
14
+ @mixin link-icon($name, $include-base: true) {
15
+ @if $include-base { @include link-icon-base; }
16
+ background-image: image-url("link_icons/#{$name}"); }
16
17
 
17
18
  @mixin link-icons {
18
19
  a[href^="http:"],
@@ -23,22 +24,14 @@
23
24
  a[href$=".xls"],
24
25
  a[href$=".rss"],
25
26
  a[href$=".rdf"],
26
- a[href^="aim:"] {
27
- @include link-icon-base; }
28
- a[href^="http:"] {
29
- @include link-icon(unquote("external.png"), false); }
30
- a[href^="mailto:"] {
31
- @include link-icon(unquote("email.png"), false); }
32
- a[href^="http:"]:visited {
33
- @include link-icon(unquote("visited.png"), false); }
34
- a[href$=".pdf"] {
35
- @include link-icon(unquote("pdf.png"), false); }
36
- a[href$=".doc"] {
37
- @include link-icon(unquote("doc.png"), false); }
38
- a[href$=".xls"] {
39
- @include link-icon(unquote("xls.png"), false); }
27
+ a[href^="aim:"] { @include link-icon-base; }
28
+ a[href^="http:"] { @include link-icon("external.png", false); }
29
+ a[href^="mailto:"] { @include link-icon("email.png", false); }
30
+ a[href^="http:"]:visited { @include link-icon("visited.png", false); }
31
+ a[href$=".pdf"] { @include link-icon("pdf.png", false); }
32
+ a[href$=".doc"] { @include link-icon("doc.png", false); }
33
+ a[href$=".xls"] { @include link-icon("xls.png", false); }
40
34
  a[href$=".rss"],
41
- a[href$=".rdf"] {
42
- @include link-icon(unquote("feed.png"), false); }
43
- a[href^="aim:"] {
44
- @include link-icon(unquote("im.png"), false); } }
35
+ a[href$=".rdf"] { @include link-icon("feed.png", false); }
36
+ a[href^="aim:"] { @include link-icon("im.png", false); }
37
+ }
@@ -2,11 +2,11 @@
2
2
  @import "compass/utilities/links/link-colors";
3
3
  @import "compass/utilities/general/float";
4
4
 
5
- $blueprint_font_family: unquote("Helvetica Neue, Arial, Helvetica, sans-serif") !default;
5
+ $blueprint-font-family: "Helvetica Neue", Arial, Helvetica, sans-serif !default;
6
6
 
7
- $blueprint_fixed_font_family: unquote("'andale mono', 'lucida console', monospace") !default;
7
+ $blueprint-fixed-font-family: "andale mono", "lucida console", monospace !default;
8
8
 
9
- $blueprint_font_size: 12px !default;
9
+ $blueprint-font-size: 12px !default;
10
10
 
11
11
  // Usage examples:
12
12
  // As a top-level mixin, apply to any page that includes the stylesheet:
@@ -20,145 +20,74 @@ $blueprint_font_size: 12px !default;
20
20
  // Deprecated:
21
21
  // You can pass the body selector as the first argument when used as a top-level mixin
22
22
  // +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
23
- @mixin blueprint-typography($body_selector: body) {
24
- @if $body_selector == true {
23
+ @mixin blueprint-typography($body-selector: body) {
24
+ @if $body-selector == true {
25
25
  @include blueprint-typography-body;
26
- @include blueprint-typography-defaults; }
27
- @else {
28
- #{$body_selector} {
26
+ @include blueprint-typography-defaults;
27
+ } @else {
28
+ #{$body-selector} {
29
29
  @include blueprint-typography-body;
30
- @if $body_selector != "body" {
31
- @warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{$body_selector}.";
32
- @include blueprint-typography-defaults; } }
33
- @if $body_selector == "body" {
34
- @include blueprint-typography-defaults; } } }
30
+ @if $body-selector != body {
31
+ @warn "[DEPRECATED] To specify the selector \"#{$body-selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{$body-selector}.";
32
+ @include blueprint-typography-defaults;
33
+ }
34
+ }
35
+ @if $body-selector == body {
36
+ @include blueprint-typography-defaults;
37
+ }
38
+ }
39
+ }
35
40
 
36
- @mixin normal-text {
37
- font-family: $blueprint_font_family;
38
- color: $font_color; }
41
+ @mixin normal-text { font-family: $blueprint-font-family; color: $font-color; }
42
+ @mixin fixed-width-text { font: 1em $blueprint-fixed-font-family; line-height: 1.5; }
43
+ @mixin header-text { font-weight: normal; color: $header-color; }
44
+ @mixin quiet { color: $quiet-color; }
45
+ @mixin loud { color: $loud-color; }
39
46
 
40
- @mixin fixed-width-text {
41
- font: 1em $blueprint_fixed_font_family;
42
- line-height: 1.5; }
43
-
44
- @mixin header-text {
45
- font-weight: normal;
46
- color: $header_color; }
47
-
48
- @mixin quiet {
49
- color: $quiet_color; }
50
-
51
- @mixin loud {
52
- color: $loud_color; }
53
-
54
- @mixin blueprint-typography-body($font_size: $blueprint_font_size) {
47
+ @mixin blueprint-typography-body($font-size: $blueprint-font-size) {
55
48
  line-height: 1.5;
56
49
  @include normal-text;
57
- font-size: 100% * $font_size / 16px; }
50
+ font-size: 100% * $font-size / 16px;
51
+ }
58
52
 
59
53
  @mixin blueprint-typography-defaults {
60
- h1 {
61
- @include header-text;
62
- font-size: 3em;
63
- line-height: 1;
64
- margin-bottom: 0.5em;
65
- img {
66
- margin: 0; } }
67
- h2 {
68
- @include header-text;
69
- font-size: 2em;
70
- margin-bottom: 0.75em; }
71
- h3 {
72
- @include header-text;
73
- font-size: 1.5em;
74
- line-height: 1;
75
- margin-bottom: 1em; }
76
- h4 {
77
- @include header-text;
78
- font-size: 1.2em;
79
- line-height: 1.25;
80
- margin-bottom: 1.25em; }
81
- h5 {
82
- @include header-text;
83
- font-size: 1em;
84
- font-weight: bold;
85
- margin-bottom: 1.5em; }
86
- h6 {
87
- @include header-text;
88
- font-size: 1em;
89
- font-weight: bold; }
90
- h2 img, h3 img, h4 img, h5 img, h6 img {
91
- margin: 0; }
92
- p {
93
- margin: 0 0 1.5em;
94
- img.left {
95
- @include float-left;
96
- margin: 1.5em 1.5em 1.5em 0;
97
- padding: 0; }
98
- img.right {
99
- @include float-right;
100
- margin: 1.5em 0 1.5em 1.5em;
101
- padding: 0; } }
102
- a {
103
- text-decoration: underline;
104
- @include link-colors($link_color, $link_hover_color, $link_active_color, $link_visited_color, $link_focus_color); }
105
- blockquote {
106
- margin: 1.5em;
107
- color: #666666;
108
- font-style: italic; }
109
- strong {
110
- font-weight: bold; }
111
- em {
112
- font-style: italic; }
113
- dfn {
114
- font-style: italic;
115
- font-weight: bold; }
116
- sup, sub {
117
- line-height: 0; }
118
- abbr, acronym {
119
- border-bottom: 1px dotted #666666; }
120
- address {
121
- margin: 0 0 1.5em;
122
- font-style: italic; }
123
- del {
124
- color: #666666; }
125
- pre {
126
- margin: 1.5em 0;
127
- white-space: pre; }
128
- pre, code, tt {
129
- @include fixed-width-text; }
130
- li {
131
- ul, ol {
132
- margin: 0; } }
133
- ul, ol {
134
- margin: 0 1.5em 1.5em 0;
135
- padding-left: 3.333em; }
136
- ul {
137
- list-style-type: disc; }
138
- ol {
139
- list-style-type: decimal; }
140
- dl {
141
- margin: 0 0 1.5em 0;
142
- dt {
143
- font-weight: bold; } }
144
- dd {
145
- margin-left: 1.5em; }
146
- table {
147
- margin-bottom: 1.4em;
148
- width: 100%; }
149
- th {
150
- font-weight: bold; }
151
- thead th {
152
- background: $blueprint_table_header_color; }
153
- th, td, caption {
154
- padding: 4px 10px 4px 5px; }
155
- tr.even td {
156
- background: $blueprint_table_stripe_color; }
157
- tfoot {
158
- font-style: italic; }
159
- caption {
160
- background: #eeeeee; }
161
- .quiet {
162
- @include quiet; }
163
- .loud {
164
- @include loud; } }
54
+ #{headers(all)} { @include header-text;
55
+ img { margin: 0; } }
56
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
57
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
58
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
59
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
60
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
61
+ h6 { font-size: 1em; font-weight: bold; }
62
+ p { margin: 0 0 1.5em;
63
+ img.left { @include float-left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
64
+ img.right { @include float-right; margin: 1.5em 0 1.5em 1.5em; padding: 0; }
65
+ }
66
+ a { text-decoration: underline; @include link-colors($link-color, $link-hover-color, $link-active-color, $link-visited-color, $link-focus-color); }
67
+ blockquote { margin: 1.5em; color: #666666; font-style: italic; }
68
+ strong { font-weight: bold; }
69
+ em { font-style: italic; }
70
+ dfn { font-style: italic; font-weight: bold; }
71
+ sup, sub { line-height: 0; }
72
+ abbr, acronym { border-bottom: 1px dotted #666666; }
73
+ address { margin: 0 0 1.5em; font-style: italic; }
74
+ del { color: #666666; }
75
+ pre { margin: 1.5em 0; white-space: pre; }
76
+ pre, code, tt { @include fixed-width-text; }
77
+ li ul, li ol { margin: 0; }
78
+ ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 3.333em; }
79
+ ul { list-style-type: disc; }
80
+ ol { list-style-type: decimal; }
81
+ dl { margin: 0 0 1.5em 0;
82
+ dt { font-weight: bold; } }
83
+ dd { margin-left: 1.5em; }
84
+ table { margin-bottom: 1.4em; width: 100%; }
85
+ th { font-weight: bold; }
86
+ thead th { background: $blueprint-table-header-color; }
87
+ th, td, caption { padding: 4px 10px 4px 5px; }
88
+ tr.even td { background: $blueprint-table-stripe-color; }
89
+ tfoot { font-style: italic; }
90
+ caption { background: #eeeeee; }
91
+ .quiet { @include quiet; }
92
+ .loud { @include loud; }
93
+ }
@@ -5,6 +5,7 @@
5
5
  @import "css3/text-shadow";
6
6
  @import "css3/columns";
7
7
  @import "css3/box-sizing";
8
+ @import "css3/box";
8
9
  @import "css3/gradient";
9
10
  @import "css3/background-clip";
10
11
  @import "css3/background-origin";
@@ -1,4 +1,5 @@
1
- //
1
+ @import "shared";
2
+
2
3
  // The default value is `padding-box` -- the box model used by modern browsers.
3
4
  //
4
5
  // If you wish to do so, you can override the default constant with `border-box`
@@ -14,11 +15,28 @@ $default-background-clip: padding-box !default;
14
15
  //
15
16
  // * padding-box
16
17
  // * border-box
18
+ // * text
17
19
 
18
20
  @mixin background-clip($clip: $default-background-clip) {
19
21
  // webkit and mozilla use the deprecated short [border | padding]
20
- $deprecated: padding;
22
+ $deprecated: $clip;
23
+ @if $clip == padding-box { $deprecated: padding; }
21
24
  @if $clip == border-box { $deprecated: border; }
22
- background-clip: $clip;
23
- -webkit-background-clip: $deprecated;
24
- -moz-background-clip: $deprecated; }
25
+ // Support for webkit and mozilla's use of the deprecated short form
26
+ @include experimental(background-clip, $deprecated,
27
+ $experimental-support-for-mozilla,
28
+ $experimental-support-for-webkit,
29
+ false, // opera
30
+ false, // microsoft
31
+ false, // khtml
32
+ false // official
33
+ );
34
+ @include experimental(background-clip, $clip,
35
+ false, // mozilla
36
+ false, // webkit
37
+ $experimental-support-for-opera,
38
+ $experimental-support-for-microsoft,
39
+ $experimental-support-for-khtml,
40
+ true // official
41
+ );
42
+ }