Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

If the person behind me on this plane pulls my seat any harder, I'll be catapulted into business class. Win fucking win.

nsa,
@nsa@hachyderm.io avatar

@jaffathecake turn around and tell them!!! it's worth the social awkwardness!

jaffathecake,
@jaffathecake@mastodon.social avatar

@nsa NEVER

jaffathecake, to random
@jaffathecake@mastodon.social avatar

If you want an element to fully contain margins (and floats, remember them?), but you don't want the contents to be clipped, display: flow-root is what you're looking for. https://jsbin.com/hafawud/edit?html,css,output

bntn,
@bntn@mastodon.social avatar

@jaffathecake I’m trying to wrap my head around it (on my mobile so can’t experiment at the moment) as it almost feels like it should be an overflow property, or a feature you would want to apply to something that is a part of another display structure (I.e. grid or flex).

simevidas,
@simevidas@mastodon.social avatar

@jaffathecake I’d be happier if there existed an explicit property for preventing margin collapsing. Something like

margin-collapse: preserve

jaffathecake, to random
@jaffathecake@mastodon.social avatar

We use self-closing syntax in HTML where it doesn't do anything. People see it and assume it does something.

Why do we keep doing this to ourselves?

https://www.reddit.com/r/webdev/comments/1cceb03/i_thought_i_knew_html_until_i_saw_this/

thet,
@thet@graz.social avatar

@jaffathecake it's more explicit, which is good and would theoretically be easier to parse except parsers cannot really on it because HTML is so forgiving and people exploiting that.

jaffathecake,
@jaffathecake@mastodon.social avatar

@thet I agree that it would be nice if the syntax actually worked, but it doesn't https://jakearchibald.com/2024/attributes-vs-properties/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

📝 HTML attributes vs DOM properties.

They're completely different, but often coupled.

Here's the difference, and why it matters: https://jakearchibald.com/2024/attributes-vs-properties/

kleinfreund,
@kleinfreund@mastodon.social avatar

@jaffathecake Right, that makes sense.

One could say that the value property indirectly, via the defaultValue property, reflects the value attribute as long as the dirty flag isn't set.

Then again, to make this easier to understand, it's perhaps simpler to stick to simpler, separate rules:

  • the defaultValue property reflects the value attribute
  • the value property doesn't reflect any attribute
  • the value property reflects the defaultValue property as long as the dirty flag isn't set
jaffathecake,
@jaffathecake@mastodon.social avatar

@kleinfreund yeah, that's the way I see it too

jaffathecake, to random
@jaffathecake@mastodon.social avatar

🧶 What would it mean to "put React in the browser"?

Can something like element.replaceHTML(html) be added to the platform to perform diffing and update the DOM?

Me and @surma talk it through: https://offthemainthread.tech/episode/putting-react-in-the-browser/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

🧶 ICYMI, here's the latest episode of OTMT, where me and @surma chat about service worker static routes, and whether it's ever ok to throw away most of the web platform and do everything in <canvas>.

Listen here: https://offthemainthread.tech/episode/canvas-based-webapps/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I asked Suno to create a German industrial song about the second coming of Jesus but this time he's a cucumber.

The chorus has been stuck in my head all week.

https://app.suno.ai/song/1ebf2eed-1161-444f-92cc-1da585f94ed1/

bastianallgeier,
@bastianallgeier@mastodon.social avatar

@jaffathecake ok, that’s a 100%-convincing use case for AI.

maegashira,

@jaffathecake That's … good, actually?! WTF?

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I get it. I get the whole point of it. But CSS logical properties are so confusing. Even after reading the first two paragraphs of https://developer.mozilla.org/en-US/docs/Web/CSS/block-size I'm left thinking ENOUGH WITH THE FUCKIN RIDDLES.

Ok, so if display: block makes the thing full width, block-size will change the width.

lol no guess again!

simevidas, (edited )
@simevidas@mastodon.social avatar

@jaffathecake I would prefer if I could continue to write ”width”, etc. in my code, but then have a tool that automatically converts my CSS to the logical version, if that’s possible.

mia, (edited )
@mia@front-end.social avatar

@jaffathecake This is a reference to the direction of flow. Which is to say:

  • the axis where elements expand based on content size
  • the axis where the next element will be added

The fact that blocks go full-width by default is a reminder that it's not the block axis. Block elements can't flow on an axis where they are always full-width.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

It's such a mess that we still can't use headings in HTML fragments, and have the heading structure be local to that part of the document.

It's so shit that browsers shipped the styling part of <section> + <h1> but not the accessibility part. That was the important bit.

jaffathecake,
@jaffathecake@mastodon.social avatar

The only recent spec activity on this is a headinglevelstart attribute which can be set to a number. I proposed an 'auto' value for this, but it was dismissed for the initial feature (but may happen later) https://github.com/whatwg/html/issues/5033#issuecomment-1733292070

slightlyoff,
@slightlyoff@toot.cafe avatar

@jaffathecake this is all just retcons. Hixie didn't do any serious research before he invented a grand new plan for HTML, and the attempts to fit new meaning back into old skins has gone as poorly as (some of us) expected.

The better way forward is to just invent elements that fucking do things by default, not by subterfuge or through a11y side-doors.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

🔊 Apple is removing web app features from Safari in the EU, rather than allowing other browsers to have those features on iOS.

Here's a new episode of OTMT with all the details, and what you can do about it:

https://offthemainthread.tech/episode/the-apple-pwa-ban/

jaffathecake, (edited )
@jaffathecake@mastodon.social avatar

Apple are no longer going to unship web app features for EU users following the release of this podcast.

Coincidence?

yes

https://developer.apple.com/support/dma-and-apps-in-the-eu/#dev-qa:~:text=UPDATE%3A%20Previously,exist%20in%20iOS.

tbroyer,
@tbroyer@piaille.fr avatar

@jaffathecake They don't open Home Screen web apps to other browser engines though. Still much better than what was previously announced though.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I'm currently pushing the idea that our component library's tests should be a separate package (in a monorepo), so we're testing the real built version of the library, and also the package.json exports.

Folks are a little uncomfortable that the component's tests are in a different folder to the implementation.

Is there a solution to this that isn't… very hacky?

pawelgrzybek,
@pawelgrzybek@mastodon.social avatar

@jaffathecake your suggestion feels the most sensible for components lib that is consumed by many packages. Testing package.json and the way how it is imported/exported is a valuable thing to test.

If there is only one package that consumes it, I think it is fine being together with the consuming package. Probably there is not much value in testing package.json in case or a single consumer.

I am also wondering how other folks do it 🧠

jaffathecake,
@jaffathecake@mastodon.social avatar

@paularmstrong the thing we're delivering is a built package. Testing something else means we're testing something other than the thing we're delivering. Build time is currently one second.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

This is a great article. Go read it. https://front-end.social/@eeeps/111966691340411170

jaffathecake, to random
@jaffathecake@mastodon.social avatar

📝 New post: Handling aspect ratio changes in view transitions.

Lots of tips on customising view transitions, and of course, live demos.

https://jakearchibald.com/2024/view-transitions-handling-aspect-ratio-changes/

callie,
@callie@front-end.social avatar

@jaffathecake I've run into so many similar issues, this is ultra helpful. Thanks for sharing and writing these!

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Rather than allow other browser engines to install-to-homescreen on iOS, Apple is removing the feature entirely in the EU.

Some features are tied to install-to-homescreen, such as push messages. Apple is unshipping those for EU users.

We need to act now: https://open-web-advocacy.org/apple-attempts-killing-webapps/

mugsensation,
@mugsensation@mastodon.social avatar

@jaffathecake Looks like Apple's dead cat strategy is working well.

paulrobertlloyd,
@paulrobertlloyd@mastodon.social avatar

@jaffathecake @bruno @spyke @manton had a very good take on this: https://www.manton.org/2024/02/16/apple-is-lying.html

> When it benefits Apple, they take the DMA requirements much further than intended. When it doesn’t benefit them, they lean back on the “integrity” of iOS and barely comply at all.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Really sad that the Navigation API isn't being included in interop 2024. This API makes a night-and-day difference to handling navigations. It cannot be polyfilled, and cannot really be used as progressive enhancement. We need it yesterday. https://github.com/web-platform-tests/interop/issues/435#issuecomment-1921896911

View transitions isn't being included either, but I'm less sad about that, because it can be used as progressive enhancement. https://github.com/web-platform-tests/interop/issues/437#issuecomment-1921897450

jaffathecake,
@jaffathecake@mastodon.social avatar

@passle @tbroyer @jpzwarte my gut feeling is that the polyfill would be lacking (similar to runtime CSS polyfills). But that's just a guess based on the history API vs the navigation API

callie,
@callie@front-end.social avatar

@jaffathecake Honestly super bummed at this year's Interop 24 list as well, especially after last year was so promising. Just kinda hoping we get some of the big ones like navigation API and view transitions to come at least to webkit even if they didn't make the list.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • cubers
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • Durango
  • magazineikmin
  • Youngstown
  • InstantRegret
  • rosin
  • slotface
  • tester
  • kavyap
  • ethstaker
  • megavids
  • osvaldo12
  • khanakhh
  • cisconetworking
  • tacticalgear
  • everett
  • mdbf
  • Leos
  • anitta
  • GTA5RPClips
  • normalnudes
  • modclub
  • provamag3
  • lostlight
  • All magazines