164
adrien
8y

Mindblowing CSS answer from one of our students, yesterday:
```
li{color:blue;}
li{color:red;}
```
=> Final color of <li>?
- Purple!
:-O

Comments
  • 2
    Whaat? :-D never even tried that.
    Tho, there's nothing worse than using colir:name :-D
  • 4
    @korent CSS reads top to bottom and more specific selectors take priority over more general ones so in this case final colour is red 😀
  • 4
    I don't know... I feel that logic is pretty sound. 😃
  • 6
    int i = 0;
    i = 1;

    Final value of i?
    0.5!

    ;)
  • 1
    @DiscanX Just imagine for a moment that binary logic was actually like this. How. Chaos. HELP.
Add Comment