Fixes #302 - handling of outline-style: auto.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 24 Jun 2014 21:27:12 +0000 (22:27 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 24 Jun 2014 21:32:48 +0000 (22:32 +0100)
History.md
lib/properties/validator.js
test/data/big-min.css
test/unit-test.js

index 394ebb9..f59b98a 100644 (file)
@@ -1,3 +1,8 @@
+[2.2.3 / 2014-xx-xx](https://github.com/GoalSmashers/clean-css/compare/v2.2.2...v2.2.3)
+==================
+
+* Fixed issue [#302](https://github.com/GoalSmashers/clean-css/issues/302) - handling of outline-style: auto.
+
 [2.2.2 / 2014-06-18](https://github.com/GoalSmashers/clean-css/compare/v2.2.1...v2.2.2)
 ==================
 
index b2a697f..67b9398 100644 (file)
@@ -14,7 +14,7 @@ module.exports = (function () {
   var backgroundPositionKeywords = ['center', 'top', 'bottom', 'left', 'right'];
   var listStyleTypeKeywords = ['armenian', 'circle', 'cjk-ideographic', 'decimal', 'decimal-leading-zero', 'disc', 'georgian', 'hebrew', 'hiragana', 'hiragana-iroha', 'inherit', 'katakana', 'katakana-iroha', 'lower-alpha', 'lower-greek', 'lower-latin', 'lower-roman', 'none', 'square', 'upper-alpha', 'upper-latin', 'upper-roman'];
   var listStylePositionKeywords = ['inside', 'outside', 'inherit'];
-  var outlineStyleKeywords = ['inherit', 'hidden', 'none', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
+  var outlineStyleKeywords = ['auto', 'inherit', 'hidden', 'none', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
   var outlineWidthKeywords = ['thin', 'thick', 'medium', 'inherit'];
 
   var validator = {
index 45774d6..0e54aea 100644 (file)
@@ -260,7 +260,7 @@ img[width="202"]{margin-bottom:4px}
 .btn.disabled:hover,input[type=submit].disabled{background-image:none;background-color:#e6e6e6;cursor:default}
 .btn_fonce.active,.btn_fonce.disabled,.btn_fonce:active,.btn_fonce:hover,.btn_fonce[disabled]{color:#fff;background-color:#16212c}
 .btn_abo.active,.btn_abo.disabled,.btn_abo:active,.btn_abo:hover,.btn_abo[disabled]{color:#2e3942;background-color:#ffc600}
-.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color 5px;outline-offset:-2px}
+.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}
 .btn:active,.btn_abo:active,.btn_fonce:active,.btn_petit:active{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);outline:0}
 .btn:active,.btn_petit:active{background-color:#e6e6e6}
 .btn_fonce:active{background-color:#000b15}
index f6f8e51..3e1b909 100644 (file)
@@ -1946,5 +1946,11 @@ title']{display:block}",
     '@-ms-viewport': '@-ms-viewport{width:device-width}',
     '@-o-viewport': '@-o-viewport{width:device-width}',
     '@viewport': '@viewport{width:device-width}'
+  }),
+  'misc advanced': cssContext({
+    'outline auto': [
+      'a{outline:5px auto -webkit-focus-ring-color}',
+      'a{outline:-webkit-focus-ring-color auto 5px}'
+    ]
   })
 }).export(module);