Skip to content

Fix image and video hiding behavior #194

Closed

Description

@prabothcharith

Scope

Repair the image and video visibility feature so it reliably hides or reveals media in host content without breaking layout or affecting plugin-owned media and icons.

Requirements

  • Define behavior for images, responsive images, background images, video, audio/video controls, posters, and dynamically inserted media.
  • Keep layout behavior intentional when media is hidden and avoid hiding plugin icons, logos, or decorative UI required for operation.
  • Ensure enable, disable, reset, navigation, and remount cleanup are idempotent.
  • Respect alt text, captions, controls, reduced motion, and keyboard access.

Acceptance criteria

  • Supported image/video elements are hidden consistently when enabled and restored exactly when disabled.
  • Dynamically added media follows the active setting.
  • The plugin shell and its controls remain unaffected.
  • No broken layout, unexpected playback behavior, stale styles, or console errors occur.

Activity

  1. prabothcharith commented on Nov 16, 2026

    @prabothcharith
    OwnerAuthor

    Completed in PR #198 (commit fb38594, docs/tests 0234149): hardened hideImages (preserving CSS gradients, informative graphics, and plugin icons) and expanded hideVideos selectors with dynamic mutation cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions