Re: [whatwg] Quirks Mode Standard

2012-02-13 Thread Simon Pieters
On Fri, 10 Feb 2012 16:37:24 +0100, Boris Zbarsky bzbar...@mit.edu wrote: On 2/10/12 2:57 AM, Simon Pieters wrote: 1) I'm fairly certain the Images (img elements) without alt attributes sometimes display placeholder icons in quirks mode. quirk cannot be dropped. ... The HTML specification

Re: [whatwg] Deferring image load

2012-02-13 Thread Bjartur Thorlacius
On 2/13/12, Gray Zhang otakus...@gmail.com wrote: We would like to present an authoring difficulty with regard to showing images on the Web with limited bandwidth, when deferring loading of certain or all images are preferable. We have some vague ideas about what browser/markup solutions

Re: [whatwg] Deferring image load

2012-02-13 Thread Kang-Hao (Kenny) Lu
(12/02/13 18:33), Bjartur Thorlacius wrote: On 2/13/12, Gray Zhang otakus...@gmail.com wrote: 1. On a product description page of a shopping site, there are several *main* pictures of the product, along with about twenty or so camera pictures of the product taken from different

Re: [whatwg] Deferring image load

2012-02-13 Thread Charles McCathieNevile
On Mon, 13 Feb 2012 12:00:52 +0100, Kang-Hao (Kenny) Lu kennyl...@csail.mit.edu wrote: (12/02/13 18:33), Bjartur Thorlacius wrote: On 2/13/12, Gray Zhang otakus...@gmail.com wrote: 2. On an album page where hundreds of pictures are expected to be shown, it is often required that

Re: [whatwg] Deferring image load

2012-02-13 Thread Ola P. Kleiven
On Mon, 13 Feb 2012 12:11:21 +0100, Charles McCathieNevile cha...@opera.com wrote: On Mon, 13 Feb 2012 12:00:52 +0100, Kang-Hao (Kenny) Lu kennyl...@csail.mit.edu wrote: (12/02/13 18:33), Bjartur Thorlacius wrote: On 2/13/12, Gray Zhang otakus...@gmail.com wrote: 2. On an album page

Re: [whatwg] Quirks Mode Standard

2012-02-13 Thread L. David Baron
On Monday 2012-02-13 09:00 +0100, Simon Pieters wrote: Exactly. My proposal, again, is that neither of these quirks apply inside a shorthand. But this is not what Gecko does. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1339 I don't know how much content uses unitless

Re: [whatwg] Quirks Mode Standard

2012-02-13 Thread Simon Pieters
On Mon, 13 Feb 2012 13:38:49 +0100, L. David Baron dba...@dbaron.org wrote: On Monday 2012-02-13 09:00 +0100, Simon Pieters wrote: Exactly. My proposal, again, is that neither of these quirks apply inside a shorthand. But this is not what Gecko does.

Re: [whatwg] Quirks Mode Standard

2012-02-13 Thread L. David Baron
On Monday 2012-02-13 14:03 +0100, Simon Pieters wrote: You say that it doesn't apply for the size of 'font'. The link above uses font:60 serif and has a 60px font size in Firefox Nightly for me. These also get applied: font:101 serif font:100 60 serif font:100 100 serif font:bold

Re: [whatwg] Deferring image load

2012-02-13 Thread Bjartur Thorlacius
On Mon, 13 Feb 2012 11:00:52 -, Kang-Hao (Kenny) Lu kennyl...@csail.mit.edu wrote: Could you elaborate a little more on this? What is a metered connection? Not all network links are equally expensive. I have to pay for tens of gigabytes I send or receive over submarine or mobile wireless

Re: [whatwg] Quirks Mode Standard

2012-02-13 Thread Boris Zbarsky
On 2/13/12 3:00 AM, Simon Pieters wrote: Exactly. My proposal, again, is that neither of these quirks apply inside a shorthand. But this is not what Gecko does. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1339 As I said earlier, I have no idea what's going on with 'font'

Re: [whatwg] Deferring image load

2012-02-13 Thread Boris Zbarsky
On 2/13/12 5:33 AM, Bjartur Thorlacius wrote: 2. On an album page where hundreds of pictures are expected to be shown, it is often required that pictures currently in a user's screen should appear as fast as possible. Loading of a picture outside the screen can be deferred to the

Re: [whatwg] Deferring image load

2012-02-13 Thread Boris Zbarsky
On 2/13/12 1:39 AM, Gray Zhang wrote: 1. the @defer attribute onimg andiframe 2. the similar @deferpolicy attribute with value a combination of visible, network-idle and render-idle 3. a global switch as a http header or an attribute on html to switch UAs image loading from

Re: [whatwg] Deferring image load

2012-02-13 Thread Bjartur Thorlacius
On Mon, 13 Feb 2012 14:17:28 -, Boris Zbarsky bzbar...@mit.edu wrote: This is a difficult optimization to make. You can only do it for images that have a height and width specified in the markup, and worse yet it leads to pretty bad flicker as the user scrolls (because network

Re: [whatwg] Deferring image load

2012-02-13 Thread Boris Zbarsky
On 2/13/12 9:29 AM, Bjartur Thorlacius wrote: On Mon, 13 Feb 2012 14:17:28 -, Boris Zbarsky bzbar...@mit.edu wrote: This is a difficult optimization to make. You can only do it for images that have a height and width specified in the markup, and worse yet it leads to pretty bad flicker as

Re: [whatwg] Why isn't the pattern attribute applied to input type=number?

2012-02-13 Thread fantasai
On 02/10/2012 11:39 AM, brenton strine wrote: Regarding the an input with type in the number state, the spec states that the pattern attribute must not be specified and do[es] not applyhttp://dev.w3.org/html5/spec/common-input-element-attributes.html#do-not-apply to the element. (

Re: [whatwg] Why isn't the pattern attribute applied to input type=number?

2012-02-13 Thread Mounir Lamouri
On 02/10/2012 05:49 AM, Ms2ger wrote: On 02/10/2012 11:39 AM, brenton strine wrote: Regarding the an input with type in the number state, the spec states that the pattern attribute must not be specified and do[es] not

Re: [whatwg] Character-encoding-related threads

2012-02-13 Thread Ian Hickson
On Mon, 13 Feb 2012, Simon Pieters wrote: On Sat, 11 Feb 2012 00:44:22 +0100, Ian Hickson i...@hixie.ch wrote: On Wed, 7 Dec 2011, Henri Sivonen wrote: I believe I was implementing exactly what the spec said at the time I implemented that behavior of Validator.nu. I'm particularly

Re: [whatwg] Deferring image load

2012-02-13 Thread Bjartur Thorlacius
On Mon, 13 Feb 2012 14:59:09 -, Boris Zbarsky bzbar...@mit.edu wrote: Well, UAs would fetch the images to be displayed first first, and then prefetch images until they have more than a screenful of undisplayed content loaded. What does screenful of undisplayed content mean for some

Re: [whatwg] CACHE MANIFEST

2012-02-13 Thread David Barrett-Kahn
If you're referring to a debugging tool, Chrome has chrome:appcache-internals for this purpose. At least in dev channel it shows the full contents of the cache, not sure whether that change has made it to stable yet. -Dave On Sun, Oct 16, 2011 at 1:54 PM, Francis Boumphrey

Re: [whatwg] Deferring image load

2012-02-13 Thread Boris Zbarsky
On 2/13/12 1:52 PM, Bjartur Thorlacius wrote: Not knowing the size makes it _impossible_ to do layout correctly. Again, UAs would only be able to skip getting images that have explicit height and width attributes. On the contrary, if you've laid out two screenfuls you can guess that anything

Re: [whatwg] Character-encoding-related threads

2012-02-13 Thread Anne van Kesteren
On Mon, 13 Feb 2012 18:22:13 +0100, Ian Hickson i...@hixie.ch wrote: Hm, that's an interesting point. Can we make a list of features that rely on the character encoding and have the spec require an encoding if any of those are used? If the list is long or includes anything that it's

Re: [whatwg] RWD Heaven: if browsers reported device capabilities in a request header

2012-02-13 Thread divya manian
On Wed, Feb 8, 2012 at 2:41 AM, Henri Sivonen hsivo...@iki.fi wrote: On Tue, Feb 7, 2012 at 11:17 PM, divya manian divya.man...@gmail.com wrote: This is the info I would love to see any time for my app to make the kind of decision it should: * connection speed: so I know how fast my resources

[whatwg] Character-encoding-related threads

2012-02-13 Thread Leif Halvard Silli
Anne van Kesteren, Mon Feb 13 12:02:53 PST 2012: On Mon, 13 Feb 2012 20:46:57 +0100, Anne van Kesteren wrote: The list starts with a and the moment you do not use UTF-8 (or UTF-16, but you really shouldn't) you can run into problems. I wonder how controversial it is to just require UTF-8

Re: [whatwg] Deferring image load

2012-02-13 Thread Bjartur Thorlacius
On Mon, 13 Feb 2012 19:12:09 -, Boris Zbarsky bzbar...@mit.edu wrote: On the contrary, if you've laid out two screenfuls you can guess that anything after that will not be in the aforeoutlaid* screenfuls. I wasn't talking about guessing at visibility. I was talking stuff like this:

Re: [whatwg] document.write(\r): the spec doesn't say how to handle it.

2012-02-13 Thread Ian Hickson
On Mon, 19 Dec 2011, Henri Sivonen wrote: On Wed, Dec 14, 2011 at 2:00 AM, Ian Hickson i...@hixie.ch wrote: I can remove the text one at a time, if you like. Would that be satisfactory? Or I guess I could change the spec to say that the parser should process the characters, rather than

Re: [whatwg] HTML5 named entity Gt; and Lt;

2012-02-13 Thread Ian Hickson
On Wed, 14 Dec 2011, Mike Samuel wrote: The table in section 12.5 ( http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html ) says GT;U+0003E Gt;U+0226B≫ gt;U+0003E GT U+0003E gt U+0003E

Re: [whatwg] window.location aborting the parser and subsequent document.writes

2012-02-13 Thread Ian Hickson
On Thu, 5 Jan 2012, Henri Sivonen wrote: Consider https://bug98654.bugzilla.mozilla.org/attachment.cgi?id=77369 with the popup blocker disabled. Chrome, Opera and IE open a new window/tab and load the Mozilla front page into it. Firefox used to but doesn't anymore. As far as I can

Re: [whatwg] Character-encoding-related threads

2012-02-13 Thread Simon Pieters
On Mon, 13 Feb 2012 18:22:13 +0100, Ian Hickson i...@hixie.ch wrote: I think this is like saying that requiring !DOCTYPE HTML is an undue burden on authors... It is. You may recall we tried really hard to make it shorter. At the end of the day, however, !DOCTYPE HTML is the best we could do.