Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-75979

Dynamic Connect macros set to “wide” or “full-width” mode can appear blurry.

    XMLWordPrintable

Details

    Description

      Issue Summary

      The container in which macros are rendered on a Confluence page (e.g. <div class="ak-renderer-extension ak-render-extension-center-align" data-layout="full-width">) has the following two styles applied to center the macro on the page:

      margin-left: 50%
      transform: translateX(-50%)
      

      When converting percentages to absolute values, browsers will typically round to the nearest pixel value to avoid blurriness; however it seems that in this case (possibly due to the fact that Connect macros are in sandboxed, cross-origin iframes), this rounding is not happening as expected.

      by slowing resizing the browser window manually, we could observe the macro going from blurry to sharp and back to blurry again, as the size of the viewport crossed the threshold between being evenly divisible to the nearest pixel value or not.

      Further, using the browser’s DevTools to locate the macro container and manually disabling the above CSS styles; the blurriness could no longer be observed at all. See blurry macro video.mp4 for full visual effect.

      This is similar to

      • CONFCLOUD-72698: Jira roadmap macro gets blurry when using Chrome on Linux

      However, that report is for native Confluence macros, and this is for Dynamic Connect macros.

      Steps to Reproduce

      1. Add a Dynamic Connect macro to a page
      2. Set the macro width to either “wide” or “full-width”
      3. Publish the Confluence page
      4. Depending on the initial size of the browser viewport, the macro may immediately be blurry or may note (depending on whether the container width is aligned evenly to a whole pixel value)
      5. Slowly resize the viewport width (essentially in single pixel increments) and observe the macro go from blurry to sharp and back
      6. Toggle off the above styles in the browser’s DevTools and observe that the issue is no longer present.

      Expected Results

      Dynamic Macro displays clearly.

      Actual Results

      Macros display with blurry text.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        1. blurry macro video.mp4
          4.95 MB
        2. editor-full-width.png
          editor-full-width.png
          335 kB
        3. editor-normal.png
          editor-normal.png
          358 kB
        4. editor-wide.png
          editor-wide.png
          338 kB
        5. ff-editor-full-width.png
          ff-editor-full-width.png
          351 kB
        6. ff-editor-normal.png
          ff-editor-normal.png
          344 kB
        7. ff-editor-wide.png
          ff-editor-wide.png
          364 kB
        8. ff-renderer-full-width.png
          ff-renderer-full-width.png
          380 kB
        9. ff-renderer-normal.png
          ff-renderer-normal.png
          379 kB
        10. ff-renderer-wide.png
          ff-renderer-wide.png
          389 kB
        11. image-2024-03-25-16-51-37-404.png
          image-2024-03-25-16-51-37-404.png
          146 kB
        12. image-2024-03-25-16-51-57-852.png
          image-2024-03-25-16-51-57-852.png
          146 kB
        13. image-2024-03-25-16-52-31-771.png
          image-2024-03-25-16-52-31-771.png
          132 kB
        14. renderer-full-width.png
          renderer-full-width.png
          361 kB
        15. renderer-normal.png
          renderer-normal.png
          355 kB
        16. renderer-wide.png
          renderer-wide.png
          361 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jrichards@atlassian.com James Richards
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: