home.social

#caniuse — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #caniuse, aggregated by home.social.

fetched live
  1. It sounded like a good idea to use native HTML modal `<dialog>`s for some new features, in the end even Safari has been supporting it for 4 years (and Chrome for 12 years).

    Well, turns out third party components can break in various wild ways when placed in dialogs.

    We spent several hours head-scratching over a broken autocomplete dropdown and a rich text editor.

    Maybe it was not that a good idea in the end...

    #HTML #CanIUse #WebDevelopment

  2. Similarly… foiled again.

    Me, earlier:

    Oh cool, the @ page size descriptor is supported by Chrome, Firefox and Safari! I’ll use it for this print and PDF layout that needs to be A4 landscape.

    Me, now, actually trying it:

    Wait, why isn’t it working? Oh. Oh no. It does not work at all in Safari. And MDN/caniuse.com say it does, but they are wrong (and there is an open issue about it).

    The WebKit bug 63575 is from… 14.5 years ago.

    *dies* 💀

    #WebKit #CSS #WebCompat #Interop #MDN #CanIUse

  3. I never gave the website favicon much thought but decided to look a bit more into it now and find it funny how Can I Use website mentions that it is a "complicated topic" in their footnotes:

    caniuse.com/?search=svg+favicon

    #webdev #favicon #caniuse

  4. Another great new CSS feature that is starting to be available in more browsers is field-sizing, which allows you to size an input to fit its value with:

    field-sizing: content;

    Great for UI like tags, where you want to be able to type directly into them and have them automatically resize to fit the text.

    (#CanIUse shows the feature as not being available in Safari Technology Preview, even though all the individual child features show that it is available)

    #Interop #WebCompat #CSS

  5. Hey #HTML / #CSS / #WebComponents folks.

    If I have:

    <my-fancy-component>

    </my-fancy-component>

    I get to target it with:

    my-fancy-component {

    }

    right?

    Does this eliminate the need for #BEM? Or is there a #CanIUse that I should be looking at for registering custom components?

    (I should prototype this in a codepen but alas, no spell slots at the moment... maybe tomorrow)

  6. thx to @seaotta on #SotB2024 for remembering us that the #web #OpenWeb should be funded from us all, i.e. a monthy donation to screenreader #nvda or #firefox or via #patreon supporting @Mastodon and projects like #CanIUse

    2024.stateofthebrowser.com/spe

  7. I scratched my own itch (again) and built a #caniuse CLI tool.

    It differs from other attempts at this by also integrating @MDN’s browser-compat-data + collapsing the releases in the table (just like the website does).

    ⌨️ npm i -g @bramus/caniuse-cli
    🔗 github.com/bramus/caniuse-cli

  8. @nicolaschevobbe @jensimmons I completely agree. The `light-dark()` is right at an acceptable level of #caniuse now, too!

  9. I started incorporating `@layer {}` and wow, this is very useful for theme creators, and they should start using it. Combine that with `:where()` for resets and normalise stylesheets, it gives a theme's styles as low specificity as possible.

    This way, users who prefer to use a third-party theme can easily override as needed, instead of using:
    * `!important`
    * `.class.class.class.class`
    * `:not(.\9.\9)`

    Another added benefit of using `@layer` is when you inspect it (F12), you can easily see where the CSS declaration came from, as it displays the `@layer`.

    According to #CanIUse baseline:

    > Since March 2022, this feature works across the latest devices and major browser versions

    caniuse.com/css-cascade-layers

    It should be fine to start using it, especially by theme authors and by reset/normalise projects.

    What do you think?

  10. color-mix() つかうの、地味に不安があったんだよな…

    古い iPhone とかで iOS バージョンアップしないまま使ってるひととか一定数いるんじゃないかという不安…(アップデートしてほしい

    #caniuse 曰く Global だと 1 割ちょっとの人が非対応の環境を使ってるってことっぽいくて、そのうちの 3% くらいが古い #iOS #Safari を使ってる人なのはやっぱりな、という感じだけど、
    デスクトップの #Chrome を古いまま使ってる人も 3% くらいいて、この数字についてどういうこと?ってなってる…

    Chrome って自動更新なのに…? :tony_neutral: ❓

    caniuse.com/?search=color-mix

  11. Only Firefox nightly supports it, no FF Android support at all. Safari support is recent. Even Chrome has about 1-2% old versions without support.

    #firefox #browser #caniuse #safari #chrome #fireFoxIsTheNewIE #webDev #web

  12. *sigh* only caret-color is in #caniuse, caret-shape and caret-animation aren't. It's definitely a CSS disappointment that they aren't implemented yet.

    So I'll look how to add those two there tomorrow.

    Unless someone beats me to it.

    #css

  13. BTW, Thank you @Fyrd for making life easier for me and millions of web developers around the world. You're effing awesome, dude!

    For whoever doesn't know, he's the creator and maintainer of #CanIUse.

  14. @fugueish @dahukanna I do, but then `<input type="date">` is its own kind of jank. design-system.service.gov.uk/p is meticulously researched. A lot of the built-ins are (or at least were) not tremendously accessible, each engine (mobile and desktop) has its own styling pecadilloes, and things don't roll into the #caniuse window with great fanfare.

  15. It's time to put to rest #hex and #rgb() / #rgba() colours in #CSS and embrace the future: #oklch() and #oklab()

    * oklch() model: caniuse.com/?search=oklch%28%2
    * oklab(): caniuse.com/?search=oklab%28%2

    I'm not sure why we still need to add/support lch() and lab() since the ‘okay’ version is the ‘fixed’ version… which is better. Then again, I'm not a #colour expert, hence I can't think of a reason. (Can someone enlighten us, mortals? Thank you!)

    Since oklch(), oklab(), lch(), and lab() are still not widely supported (yet), and many end-users are still using an old version of browsers without support, there is #hwb().

    As you can see from caniuse.com/?search=hwb%28%29 hwb() is widely supported already. The only browsers still without hwb() support are niche browsers, mainly from China (they don't even support rgb() according to #CanIUse).

    * Base #color model: hwb()
    * To be future proof: oklch() or oklab()

    What I'm more excited about is the #RelativeColor feature from #CSSColor5, but that's for another day.

    #CSSColor4 #CSS5 #CSS #colors #color #webdev #webmaster

  16. I get that browser compatibility is still a problem. But still you get pretty far with Edge. I lean on #CanIUse a lot. #WebDev #CSS #Frameworks caniuse.com/