Permalink
Browse files

Write tests for the opacity mixin

  • Loading branch information...
1 parent 5be23e0 commit 6ed5cb1f157ee0f1bd1a15a8a01d4cfc3a3a9084 @rowanmanning committed Jun 26, 2012
Showing with 12 additions and 2 deletions.
  1. +5 −0 test/catchup.css
  2. +3 −1 test/catchup.html
  3. +4 −1 test/css3/opacity.less
View
@@ -50,3 +50,8 @@
-moz-box-sizing: border-box;
box-sizing: border-box;
}
+#css3-opacity .test-1 {
+ -ms-filter: alpha(opacity=30);
+ filter: alpha(opacity=30);
+ opacity: 0.3;
+}
View
@@ -129,9 +129,11 @@
<h2><a href="#css3-opacity">css3/opacity</a></h2>
<p class="expected">
- What's expected.
+ The box below should have 30% opacity.
</p>
+ <div class="test-highlight test-box test-1"></div>
+
</div>
@@ -1,6 +1,9 @@
#css3-opacity {
-
+ // Tests
+ .test-1 {
+ .opacity(0.3);
+ }
}

0 comments on commit 6ed5cb1

Please sign in to comment.