c69's Browser Pit

Subscribe to RSS feed

Posts tagged with "css"

Responsive Images: an answer to wrong question

, , , ...

at last, someone questions common wisdom:
http://24ways.org/2012/responsive-images-what-we-thought-we-needed/
via http://www.stevesouders.com/blog/2012/12/14/a-good-blog-post/

Because querying screen size to determine image size is retarded and essentially pointless.

CSS gradients and lots of spare time

, , , ...

played around with gradients today...
Disclaimer: Do not use in production. Nothing of this works in Chrome (because they have not uprefixed gradients, just yet)

Pure CSS Triangle: http://jsfiddle.net/GBjXp/
Boring, just another triangle.

Simple color mix: http://jsfiddle.net/ugPUu/
Boring, RGB colors @ 120 degree shift.

Eye in a Tube: http://jsfiddle.net/qAYbK/
Overlaying radial gradients.
Notice how Firefox is starting to experience troubles with this one - dirty colors, stuttering. Special: drag/resize jsfiddle's layout grid, and you will see how Firefox draws radial-gradient all over your screen.

Liquid sky: http://jsfiddle.net/8Q8dj/
Something more visually enoyable.
This one is using background-size to patternize gradient, small alpha hsla for spiral gradient, also, corners are bluntly hacked.
Looks as intended in ie10/o12, but FF19 adds extra psychedelic effects, which you might decide to enjoy wink

CSS3: not so awesome

, , ,

warning: deliberate trolling!
disclaimer: This was done just to show you that CSS3 is not meant for crazy experiments just yet.

Check the link with cool generic 2012 css-only ribbon - http://jsfiddle.net/tMXuC/

Only Opera can handle this css, which is supposed to be standard ? Why are other browsers so pathetic ?

p.s.: Chrome will unprefix css3 soon, IE10 is untested - sorry no win8 at my disposal yet, Firefox 19 .. cannot handle hover for some reason. Fill bug in their bugzilla, if you care.

Shadow DOM is about to be released in the wild

, , , ...

Shadow DOM is enabled by default in Chrome 24. But not style=scoped, yet. Anyway, that is a start of tectonic shift, the web will never be the same* as we know it. Trust me. (* - for HTML/CSS coders, that is).

Also, there is other cool new stuff in upcoming Chrome:
- polygonal shapes added to CSS Exclusion module:
http://hansmuller-webkit.blogspot.co.uk/2012/06/horizontal-box-polygon-intersection-for.html
- “clip-path” CSS property, which restricts the region of an element that can be painted is now supported.
- unprefixed window.performance and requestAnimationFrame
- like Firebug, WebInspector is now able to style its console output, thus:
'console.log("%cBlue!", "color: blue;");' will write blue text to the console, and so on.
- like Opera, WebKit now supports the @supports rule from the CSS Conditional module.
- like in Firebug and Dragonfly, the $() function now aliases querySelector rather than getElementById, within Web Inspector.
- experimental WebGL inspections
- you can now draw dashed lines in Canvas.


via Peter Beverloo.

On the front edge of practical CSS

,

Cool transition effect for radio buttons:
http://jsfiddle.net/ryanseddon/FeJT2/

Here is the original code (spoiler: fascinating use of sibling selector! )
http://codepen.io/simurai/pen/rJwpz

,

there is a trend of moving (back) to MS box model.
Paul Irish was first to talk about it, but now more people are supporting the idea.
http://generatedcontent.org/post/25832131984/box-sizing#notes

// i was using it before it was cool. But now i have IE7 in requirements. Irony.

unprefixing your gradients is not enough

, ,

http://blogs.msdn.com/b/ie/archive/2012/06/25/unprefixed-css3-gradients-in-ie10.aspx

it turns out while the syntax has not changed much, some default values and algorithms behind it - have changed significantly. Good news: you still have whole summer to update your code.

Adobe moves further to HTML

, , , ...

http://html.adobe.com/

also, charming Divya has left Opera for Adobe.

Over the top with 3D СSS

, , ,

http://2012.beercamp.com/

The thing looks crazy. i was amazed. View in Chrome.

CSS Variables are coming

,

With butt-ugly declaration syntax.. but, at least there is something, finally, after all those years.
draft: http://dev.w3.org/csswg/css-variables/
announcement: http://lists.w3.org/Archives/Public/www-style/2012Apr/0228.html
June 2013
M T W T F S S
May 2013July 2013
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30