Skip to content

Commit 4010d0a

Browse files
authored
Create css-layout.js
1 parent c7e0530 commit 4010d0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: css-layout.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// tiny CSS layout "debugger"
2+
// from https://gist.github.com/addyosmani/fd3999ea7fce242756b1
3+
// puts random color border around each element
4+
[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})

0 commit comments

Comments
 (0)