W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] The src-N proposal

From: Qebui Nehebkau <qebui.nehebkau+whatwg@gmail.com>
Date: Tue, 19 Nov 2013 21:13:53 +0000
Message-ID: <CAF_oMa0r1S_M9sSTT63eAKNNjjqdw+OZFzOdW0F9nQM_3SXvtg@mail.gmail.com>
To: Bruno Racineux <bruno@hexanet.net>
Cc: whatwg@lists.whatwg.org
On Tue, Nov 19, 2013 at 2:28 AM, Bruno Racineux <bruno@hexanet.net> wrote:
> If I can give two top of my head analogies. With that pattern of thinking,
> something like the rather complex to understand CSS flexbox wouldn't
> exist. Or inline javacript would be allowed for fear of a dumb mistake by
> an amateur.
>
> I think, this kind of false misdirected fears, are actually overemphasized
> concerns by some here. If we worry about 'stupid' so much that it hinders
> progress. It could set priorities backwards.

I think there's a qualitative difference between "this particular
thing is more complex than necessary in a way that virtually
guarantees it will be misused" and "no even slightly complicated
things should ever be allowed anywhere ever". *Not* worrying too much
about "stupid" doesn't mean that we have to do everything the hard
way, either.

> Perhaps, a reason I come to this conclusion, is that: An advantage with
> the Worpdress img-name-{width}x{height}.jpg syntax is that you don't need
> any tokens at all.  As long as the With and Height are declared inline,
> you can figure out the ratio, and match that with the list of available
> widths to get the right image.

Sure, but, like I said, that only works as far as you stick to the
rigid pattern for image names. As soon as you want to break the
pattern, or - heaven forfend! - *extend* it, it becomes a serious
liability, to say the least.

> Which makes src-N or srcset ever more so unnecessary for that particular
> naming convention, that I'd rather almost have a few lines of inline
> javascript do it in the head, for the Wordpress platform.


That's great, for the Wordpress platform. Everyone else might still
want responsive images that don't require them to emulate Wordpress.
Received on Tuesday, 19 November 2013 21:14:37 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:14 UTC