Skip to content
Open
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
10 changes: 10 additions & 0 deletions lib/nib/vendor.styl
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,16 @@ opacity(n, args...)
-ms-filter: '"progid:DXImageTransform.Microsoft.Alpha(Opacity=%s)"' % val args
filter: 'alpha(opacity=%s)' % val args

/*
* Blur with conditional IE support.
*/

blur(radius)
vendor('filter', 'blur(%s)' % radius, only: webkit moz ms official)

if support-for-ie
filter '"progid:DXImageTransform.Microsoft.Blur(PixelRadius=%d)"' % radius

/*
* Vendor "text-size-adjust"
*/
Expand Down
11 changes: 11 additions & 0 deletions test/cases/vendor.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@ button {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=50);
}
button {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
filter: blur(5px);
filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=5)";
}
button {
opacity: 0.75;
white-space: nowrap;
}
button {
-webkit-filter: blur(1px);
-moz-filter: blur(1px);
filter: blur(1px);
}
button {
-webkit-animation-name: myAnimation;
-moz-animation-name: myAnimation;
Expand Down
6 changes: 6 additions & 0 deletions test/cases/vendor.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ button
button
opacity: 0.5

button
blur: 5px

support-for-ie = false

button
opacity: 0.75
whitespace: no-wrap

button
blur: 1px

button
animation-name: myAnimation;
animation-delay: 1s;
Expand Down