|
|
|
|
|
by geelen
4303 days ago
|
|
Well, the problem with having foo and foo--bar but not both is that contextual overrides become a problem. Having both of them solves that but clutters things up. This is a technique to better express your styling intent through markup. Instead of <div class="x x-y z"> you have <div x="y" z> - two namespaces instead of one. |
|
...by having obscure custom attributes?
That seems extremely close to having size="big" and color="red" from html4.
How is this not just going back to a known bad design pattern?