//----------------------------------------------------------------- // minifier //----------------------------------------------------------------- how-browser-parse-css.php コメントとストリングに関するブラウザのParseの仕方を理解する。 analyze-css コメントとストリングを抽出するモックアップ・スクリプト //----------------------------------------------------------------- // comment //----------------------------------------------------------------- regex-comment.php regex to remove css comment //----------------------------------------------------------------- // string //----------------------------------------------------------------- test-comment.php contentの中でコメントを終わらす。("...*/...") すると後のセレクタはどうなるのか? test-string.php content:"..."のsyntaxを調べる escape-string-in-css-content.php css contentの中でescapeの実験をする。 content:"ab\"cd" capture-string-with-escape.php escapeを含むstring(e.g. "abc\"def") をpreg_matchでマッチする。 You need '/s' modifier for multiline match regex-string.php regex to match string with escape //----------------------------------------------------------------- // calc //----------------------------------------------------------------- The-plus-and-minus-operator-in-calc()-must-always-be-surrounded-by-whitespace.txt An important remainder in calc() syntax test-calc.php calc()のsyntaxを調べる calc()内部の+、ーは、両側にスペースが必要(例: "10px + 100px" ) find-calc.php regex to find calc(...) (this does not take care of nested parentheses) regex-recursive.php use recursive php to find calc() regex-not-preceded-by.php "cacl()"はOKだが、"intercalc()”は無効にするためのregex //----------------------------------------------------------------- // media //----------------------------------------------------------------- test-media.php @mediaの中のスペースのルールを調べる //----------------------------------------------------------------- // decimal //----------------------------------------------------------------- test-decimal.php digitが頭にきたCSS Indentifierの有効・無効を調べる regex-preceded-by.php "0.3"を".3"に変えるためのregex //----------------------------------------------------------------- // whitespace //----------------------------------------------------------------- remove-whitespace.php remove white spaces remove the last ; before } test-url().php are whitespaces allowed in url(...)? //----------------------------------------------------------------- // END OF FILE //-----------------------------------------------------------------