benface's Avatar

benface

@benface.com.bsky.social

36 Followers  |  425 Following  |  30 Posts  |  Joined: 26.11.2024  |  1.8328

Latest posts by benface.com on Bluesky

This! And typed counters too!

03.08.2025 16:49 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Amazing. On a slightly related note, can we please have a way to get the `<number>` value of a counter so we can use it in `calc()`?

03.08.2025 16:47 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

What is this printer?

29.07.2025 14:23 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Oh so youโ€™re talking about the spelling? I thought you meant the pronunciation. But I actually like โ€œM-dashโ€ because itโ€™s what the โ€œemโ€ is for โ€“ the width of the letter M.

07.07.2025 00:59 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Isnโ€™t it exactly what it is?

07.07.2025 00:48 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

This probably is an edge case? Iโ€™m guessing no other page / element has these text styles.

06.07.2025 16:03 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

This. MacOS Calendar has supported an arbitrary number of alerts since forever but iOS is still restricted to two. ๐Ÿ˜’

04.07.2025 13:29 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Do you mean that it can be used without a form? An example would be nice!

03.07.2025 13:05 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ah: โ€œIf <title> is within an <svg> component, then there is no special behavior, because in this context it doesnโ€™t represent the documentโ€™s title but rather is an accessibility annotation for that SVG graphic.โ€

30.05.2025 21:03 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

What about SVG <title>s?

30.05.2025 21:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Nope, same here.

22.05.2025 12:43 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I just tested and the state is indeed reset. It seems to be per _element_, not per component.

19.05.2025 17:25 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1

> I think you can have Wrapper know what to render / how to render. The component hierarchy stays the same but the outcome changes.

But wonโ€™t there be the same issue inside Wrapper? At some point, something has to render a different element.

19.05.2025 15:15 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

๐Ÿฅฒ So whatโ€™s the solution? Or is conditional wrapping just bad (when itโ€™s dynamic at least)?

19.05.2025 14:39 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ok, I understand the potential problem, but how would you prevent it if you really do want a component to conditionally wrap children in another? Just render in a `<div>' wrapper instead?

19.05.2025 13:58 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

When will you tell us?

18.05.2025 23:53 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Nothing. It looks great to me.

18.05.2025 23:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Wow! I guess Iโ€™m an OG.

30.04.2025 16:13 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

It came out in 2017 ๐Ÿ‘ด

30.04.2025 13:43 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Would love a blog post on those approaches ๐Ÿ˜

28.04.2025 22:43 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

That is super clean, but what if new data needs to be fetched when the filters change? Thatโ€™s harder to model in my head than pre-RSC, but Iโ€™m sure Iโ€™m missing something.

28.04.2025 22:34 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Because Apple doesnโ€™t allow alternative browser engines on iOS :/

14.04.2025 14:23 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

As far as I know, gap decorations will work for both flex and grid gaps.

13.04.2025 13:48 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

> Maybe consider adding a border between items (In both flexbox and grid).

Thatโ€™s coming, with gap decorations!

13.04.2025 05:49 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Related to this: I believe setting the Light or Dark preference on a site should be a browser feature, instead of requiring each site to implement their own Dark Mode Toggle Button.

29.03.2025 11:05 โ€” ๐Ÿ‘ 44    ๐Ÿ” 7    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Style and scroll state queries maybe?

19.03.2025 07:58 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

๐ŸŽฏ

16.01.2025 14:59 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Forgot: `scrollbar-color`

12.01.2025 22:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Awesome post, I agree with all of it. I would add the following:
- attr() function for all properties, which Chrome just implemented in Canary
- gap decorations (not implemented in any browser, but Safari can be the first ๐Ÿ˜)
- less buggy `@property` and `@scope`

12.01.2025 22:01 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Thatโ€™s not a maple leaf ๐Ÿซ  Still pretty though!

25.12.2024 06:33 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@benface.com is following 20 prominent accounts