Earlier quoted context omitted.
What's difficult about centering a box? Was that just sarcasm? A couple of approaches: Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children If it was sarcasm, disregard my stupidity.
That's still non-intuitive. Just do a search about centering (or X problem in CSS) and see the thousands of threads and questions and corner cases, hacks and exceptions. The whole thing feels like you are stretching something beyond what it was intended to be used for. Things like element positioning should be so so simple that if you search about it, you get nothing back because no one had a problem to ask for solut…
iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
91–100 of 121 posts
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#92Nice to see they're getting bit by their own decisions. They've gone out of their way to ensure that you can't ever play an Audio/Video clip automatically on page load in iOS Safari. Every new iOS release for the first few years included a patch to kill any new workarounds that let you do so. (Curse you iOS 4.3 for taking away our simulated clicks.) But now they have a use case of their own that needs it, so they inv…
This has almost nothing to do with autoplay and the video tag and much more to do with a desire for a script-controllable animation.
(Most obviously: they don't start playing until the animation data is loaded, so that it doesn't do the herky-jerky frame-playing during load, like actual animated gifs.)
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#93Earlier quoted context omitted.
Right. Now center it vertically. Also don't make any assumptions (like fixed height, or display: block) about container and the box to be centered.
http://cssdeck.com/labs/aqdw0l21/0 Container has fixed dimensions in my example, but it does not matter in this case.
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#94Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#95Earlier quoted context omitted.
There's nothing non-standards compliant about what they've done, as far as I can tell. Disabling the animation seems like an attempt at ensuring graceful degradation.
Graceful degradation shouldn't be based on user agent sniffing. That defeats the purpose.
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#96Earlier quoted context omitted.
> Margin Auto w/ a fixed width Absolute 50% w/ negative margins Text-align center parent w/ inline-block display on children Yes, totally intuitive and logical solutions all of them. If you have w3c Stockholm syndrome, that is. E.g "Just absolute 50% it with a negative margin" (oh, yes, and you would have to know the width beforehand). > If it was sarcasm, disregard my stupidity. It's not the stupidity, is the willin…
It's not the stupidity, is the willingness to put up with BS convoluted inelegant workarounds for lack of basic, bread and butter, features. You're right, there is a willingness to put up with it. Mainly because I understand how these solutions work, how to debug them, and make everything nice and peachy. Do I wish things were better? Of course! Who wouldn't?
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#97Speaking of Apple website updates, I am surprised that they have never offered a responsive design for their apple.com site where you buy iPhones and iPads. Every app they make is designed differently for the phone or the iPad, but not the website.
Since they have an Apple Store App that works better than the website, why would they do that?
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#98Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#99As a side note, publishing this on Google Docs is an interesting choice by the author - alleviates any need to worry about load from the piece becoming popular, but it almost makes it an anonymous article.
I went ahead and added a really short byline though.
Re: iPhone 5 web teardown: How Apple compresses video using JPEG, JSON, and canvas
#100This was more along the lines of, "How Apple reinvented/over-engineered the animated GIF"