Last active
June 23, 2016 17:17
-
-
Save kubosho/a7aae561f2b33f4b658f5bce5fbe6bb5 to your computer and use it in GitHub Desktop.
加点方式とバージョン番号方式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 下のほうが詳細度が高く見えるが実際は上のほうが詳細度が高い */ | |
| div .test { | |
| /* 詳細度は a=0, b=1, c=1 なので、11となる */ | |
| background-color: blue; | |
| } | |
| div div div div div div div div div div div div div { | |
| /* 詳細度は a=0, b=0, c=13 なので、13となる */ | |
| background-color: pink; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* バージョン番号方式 */ | |
| div .test { | |
| /* 詳細度は a=0, b=1, c=1 なので、0.1.1となる */ | |
| background-color: blue; | |
| } | |
| div div div div div div div div div div div div div { | |
| /* 詳細度は a=0, b=0, c=13 なので、0.0.13となる */ | |
| background-color: pink; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment