HN Simulatornew | past | comments | lists | submit | extra88's commentslogin

AVIF supports multiple frames. It's a good replacement for animated GIFs.

I don't think you need a replacement for them besides actual proper video.

Absolutely not, unless you're using your hobby site to learn Drupal.


Everyone thinking about 2-state vs. 3-state controls is automatically honoring the device's color scheme setting. The controls are an extra to let users choose to not use the device setting on a particular site.

Rather than each site making its own design for such a control, I wish browsers would make it a per-site setting users could use.


That's basically @media (prefers-color-scheme: dark).

However, we should go a step further and provide a framework of UI elements that can be used consistently to create a uniform and accessible interface and they could even be pre-compiled into native controls for more efficient...hold on a gosh darn minute...


Honoring the dark/light color scheme set on the device might be a requirement in some cases (I haven't seen a straight answer about it for the EAA) but it is a good accessibility practice.

Including a toggle in an app/site UI so users can choose to not use their device setting is an extra.


I'll just note that the EAA is not the only accessibility law operating in the world.

Furthermore there might be accessibility use cases in which your site works better for some people in dark mode and better for other people in light mode, expecting that people will switch their device settings when they come on your site if you have this problem would not be nice.


I'm most familiar with the U.S., where it's not a requirement. Europe is the only place where I've heard there might be a requirement to honor a device's color scheme, I think it's very unlikely it exists anywhere else.

If a site honors the dark/light setting, I don't know what accessibility need would be served by being in the opposite mode for that one site. Having a toggle to meet preferences, yes, need, I don't know.


I can see it, the Sign Up dialog has a Close button.


Sure it does. Open a modal using


I could still tab behind the dialog


What dialog, the examples in the article? It doesn't have any dialogs that use `command="show-modal"`, only "show-popover".

Here's an example of "show-modal". It also has an opacity transition.

https://codepen.io/ccwilcox/pen/vEKXeER/b705840fccd607237a4e...


That's not what it's for, that's solved by showing the link when it's focused.

My guess is there was a desire to make Find-in-page automatically expand

elements and someone realized they could make it also work for custom disclosure widgets by giving the boolean attribute `hidden` an optional value.


That's fine, everything doesn't have to look the same everywhere. It does matter when there's functionality a site relies on but it's not available in one out more browser/OS combinations.


Yes, I agree that using the native OS UI is the right choice. Imagine if every web browser had a different file picker dialog, it would be a pain to have to reorient yourself just for that product.

However, I do lament the antiquated Windows 95 color picker. It seems less functional than others that I've used.


Exactly. I want tings to work as defined by the OS I deliberately chose.


CSS now also has `reading-flow` to instruct the browser to change the reading order to match the visual order created by Flex or Grid. Unfortunately, not all browsers support it and it has some limitations.


All current browsers support anchor positioning including popover buttons being the implicit anchor. However, the anchor positioning polyfill does not support this, it requires an explicit anchor-name.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: