Posts

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

siblingpastry, (edited ) to keyboard
@siblingpastry@mastodon.world avatar

I've been playing around with keyboard scrolling of overflow regions, and I was interested to note how Firefox's native behavior doesn't expose any additional semantics -- i.e., it doesn't apply a role or accessible name when the scrolling region becomes focusable.

And I think that's the right thing to do -- that our standard workaround of including role="region" and aria-label or aria-labelledby (along with tabindex="0") creates unnecessary verbosity.

(1/3)

cwilcox808,
@cwilcox808@c.im avatar

@siblingpastry
Nice!

Is there a not too onerous way to test whether a browser natively includes scrollable elements in the focus order so this code doesn't need to run?

siblingpastry,
@siblingpastry@mastodon.world avatar

@cwilcox808 Not that I know of, it doesn't seem to expose anything in the DOM. There's a change in the accTree (the element gains a "focusable" state) but nothing that JS can read, as far as I know.

siblingpastry, (edited ) to javascript
@siblingpastry@mastodon.world avatar

Writing to handle browsing is interesting.

Since keydown only fires for targets that can be activeElement, the event target from caret navigating plain text is always <body>.

However you can identify which element contains the caret, by evaluating the range data, which you can also do from selectionchange events.

And get this -- Safari still fires those events, even though it doesn't support caret browsing ... because it actually does, it just doesn't show the caret!

aardrian,
@aardrian@toot.cafe avatar

@siblingpastry Thatโ€™s exactly the test I was going to try when I get home.

I look forward to updating my blog post about caret browsing.

siblingpastry,
@siblingpastry@mastodon.world avatar

@aardrian Just noting that it doesn't bring focus with it, you still have to Tab to those.

siblingpastry, to javascript
@siblingpastry@mastodon.world avatar

Saturday fun -- a little helper function for closest() that handles the possibility of the input being a text node:

const getClosest = (node, query) =&gt; {  
 if(!node) {  
 return null;  
 }  
 while(node.nodeType !== Node.ELEMENT_NODE) {  
 if(!(node = node.parentNode)) {  
 return null;  
 }  
 }  
 return node.closest(query);  
};  
siblingpastry, to random
@siblingpastry@mastodon.world avatar

Turns out the smoking ban is part of their strategy to deter asylum seekers. Like who would want to make a new home in a country where they canโ€™t even smoke? Most of the small boat crossings are local shopkeepers smuggling in gray-market tobacco anyway.

siblingpastry, to random
@siblingpastry@mastodon.world avatar

Oh the irony โ€ฆ Freevee shows on Amazon now have fewer ads than Prime ๐Ÿคฆ๐Ÿคฆ

siblingpastry, to random
@siblingpastry@mastodon.world avatar

Latest season of is such a circle jerk. Every single episode is a rehash of a TNG-era plot. Easter egg threads? Yeah that stopped being cool a couple of seasons ago, how about some original stories?

siblingpastry, (edited ) to writing
@siblingpastry@mastodon.world avatar

"Thatโ€™s the trouble with confession and denial โ€” confession always sounds like the truth, and denial always sounds like a lie.

"If someone lies, and you deny it, your denial makes the lie seem more credible. If you confess, nobody asks if it's true. Which way round that happens doesn't make any difference."

siblingpastry, (edited ) to harrypotter
@siblingpastry@mastodon.world avatar
siblingpastry, to ADHD
@siblingpastry@mastodon.world avatar

Aha, now I get it ...

Adding something to a TODO list makes it generally less likely that I'll do it.

If I add it to the list, then I'm far less likely to just remember it, because it has less permanence. So whether I'm later reminded, depends on whether I remember to check the list.

So for each case, I have to evaluate which of those two is more likely.

Then for anything I'm reasonably confident of remembering -- it's more likely to happen if I don't create a reminder for it.

siblingpastry,
@siblingpastry@mastodon.world avatar

@SaraSoueidan I lean on contextual reminders a lot -- like, if I have to do Y and I know that X will remind me of Y, then I only need to remember X, if that makes sense?

yatil,
@yatil@yatil.social avatar

@siblingpastry Thatโ€™s the main reason I need a todo manager with start dates. Just throw todos at me that I could do today and have me organize or ignore them. ๐Ÿ˜‚

siblingpastry, to accessibility
@siblingpastry@mastodon.world avatar

Writing up some best-practice patterns for form controls, and I've assembled this list of native HTML controls that should never be used (because they're not universally supported, and/or their native UI has accessibility problems):

<input type="color">
<input type="date">
<input type="datetime">
<input type="datetime-local">
<input type="number">
<input type="time">
<input type="week">

Any debate on those? Anything I've missed?

siblingpastry,
@siblingpastry@mastodon.world avatar

@aardrian

Right yeah, it could be aria-disabled and visually dimmed, without being disabled

@joelanman

aardrian,
@aardrian@toot.cafe avatar

@siblingpastry
That. With [aria-disabled] as the CSS selector to help enforce programmatic alignment.

Anyway, I know you know all this. I just want to participate.

@joelanman

siblingpastry, to random
@siblingpastry@mastodon.world avatar

RE: Facebook "reels" (short recommended videos, in a group that shows up several times on any given page)

How do I permanently stop it showing up?

Failing that, how do I control what it thinks I like?

aardrian,
@aardrian@toot.cafe avatar

@siblingpastry I solved it by not using Facebook in at least a decade. Not sure that helps.

siblingpastry, to writing
@siblingpastry@mastodon.world avatar

"You can't blame religion for the evils committed in its name. Those people are just using their creed as an excuse to do the evil they wanted to do anyway."
"I completely agree, so then the reverse must also be true -- you can't credit religion for the good that's done its name. Those people are just using their creed as an excuse to do the good they wanted to do anyway."
"So creed is just a mask for innate humanity?"
"Yeah. That's why creed exists."

siblingpastry, to random
@siblingpastry@mastodon.world avatar

TIL that "Blackbird" is about racial discrimination and civil rights.

I never would have guessed that, I always thought it was about loneliness.

siblingpastry, to windows
@siblingpastry@mastodon.world avatar

How do regular users cope with its constant fucking ads?

Abusing system notifications, polluting the start menu, adding unremovable promotional buttons to the task bar.

I can't stand it for more than a few minutes.

paxtonjohn,
@paxtonjohn@mastodon.social avatar
siblingpastry,
@siblingpastry@mastodon.world avatar

@paxtonjohn Cool, I'll try those things, thank ๐Ÿ™

siblingpastry, to ADHD
@siblingpastry@mastodon.world avatar

Here's an I came up with: ๐Ÿ˜Š

The clock on my kitchen microwave is always an hour fast. So that every time I walk past it, I get a little adrenaline-dopamine hit from, "Shit is that the time? Oh wait, no that's fine."

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