http://github.com/trifacta/mutantsss
$$$
Doing this with HTML/CSS is Easy
Doing this with HTML/CSS is Easy
Doing this quickly with HTML/CSS is Hard™
...
...
...
...
...
...
.row-23 { top: 230px; height: 32px; } /* ??? */
...
.column-42 { left: 420px; width: 24px; } /* ??? */
...
|
→ |
|
O(n2)
|
→ |
|
$$$
|
→ |
|
|
→ |
|
O(n)
var newStyles = document.createElement('style');
document.head.appendChild(newStyles);
newStyles.sheet.deleteRule(...);
newStyles.sheet.insertRule(...);
Naive≈140ms |
|
npm install mutantsss