• @Strawberry
    link
    410 months ago

    I’ve been dealing with this at my job because a layout library was deprecated and is used throughout our codebase instead of proper css. Came to learn that my whole team doesn’t like/know css, so they used this library that used angular directives in the html instead. We had multiple giant scripts for arranging elements in a grid that changed based on screen width

    • parrot-party
      link
      fedilink
      2
      edit-2
      10 months ago

      There are some cases where this is a serious issue that can’t be solved through pure CSS. Once container units are finally approved though, that will solve quite a few problematic layout issues in CSS.

      • @Strawberry
        link
        1
        edit-2
        10 months ago

        Aren’t these already supported in all major browsers? Also I agree, but in this case we did not even need a container query, just a media query

        edit: https://caniuse.com/css-container-query-units about 85% of users have browser support for container query units

        • parrot-party
          link
          fedilink
          110 months ago

          Yes but the support is very recent and hasn’t been fully accepted yet. Therefore, I can’t use it in enterprise. I have to wait for full adoption.