Skip to content

Compare HTML and CSS alternatives for image previews - #1442

Merged
Patrick Brosset (captainbrosset) merged 3 commits into
MicrosoftEdge:mainfrom
ogerchikov:image-preview-css-comparison
Nov 18, 2026
Merged

Patrick Brosset (captainbrosset) merged 3 commits into
MicrosoftEdge:mainfrom
ogerchikov:image-preview-css-comparison

Conversation

@ogerchikov

Copy link
Copy Markdown
Member

Adds side-by-side authoring examples and a tradeoff table comparing HTML preview attributes with CSS-sourced previews.

Relates to MicrosoftEdge/MSEdgeExplainers#1440.

Comment thread ImagePreview/css-html-comparison.md Outdated

The HTML examples use the proposed `preview` and `previewset` attributes. The CSS examples use `background-image` or `background-color` on the sketch's `::preview` part.

**For this comparison, assume `::preview` becomes eligible for display when its background image loads, without requiring an HTML `preview` attribute.**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dominant color example only sets background-color. Could you clarify when a color-only preview becomes eligible for display?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few clarification questions and a suggestion to expand the conclusion on why HTML is preferred.

@ogerchikov
Olga Gerchikov (ogerchikov) marked this pull request as ready for review November 17, 2026 19:09
@captainbrosset
Patrick Brosset (captainbrosset) merged commit ba2c5c3 into MicrosoftEdge:main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants