September 2010
3 posts
-webkit-line-clamp
dropshadows: -webkit-line-clamp is an unsupported WebKit property that limits the number of lines of text displayed in a block element. In order to achieve the effect, it needs to be combo-ed with a couple of other exotic WebKit properties. <p style=" overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; "> WebKit...
Sep 29th
45 notes
4 tags
Specification proposals from the WebKit project →
webkitbits: A listing of all of the specifications built into WebKit that are not necessarily part of the W3C yet. pointer-events is one of my favorites… I agree completely. Having pointer-events would be great for being able to create visual effects overtop clickable elements and so on. I’ve been wanting this for a while. I’ll have to give this a shot in some of the mobile apps...
Sep 29th
13 notes
4 tags
Declaring Multiple Script Tags
It would be nice if we could use a <script> tag like this to keep our HTML code nice and clean. <script type="text/javascript"> <source src="_/app.js" /> <source src="_/views/Viewport.js" /> <source src="_/classes/Storage.js" /> </script> It’d make pages lighter and I think it’s much easier to read. This is similar to how...
Sep 24th
5 notes