Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live example of @page can't run #37017

Closed
skyclouds2001 opened this issue Nov 28, 2024 · 2 comments
Closed

Live example of @page can't run #37017

skyclouds2001 opened this issue Nov 28, 2024 · 2 comments
Labels
closed: duplicate This issue or pull request already exists Content:CSS Cascading Style Sheets docs

Comments

@skyclouds2001
Copy link
Contributor

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/@page

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

the live example can't propertyly

What did you expect to see?

make the example run correctly

Do you have any supporting links, references, or citations?

see also mdn/yari#11693

Do you have anything more you want to share?

This happens because Window.print() can't run inside an <iframe> unless its sandbox attribute has the value allow-modals.

We may either:

  • add a allow-modals value inside the {{EmbedLiveSample}} macros
  • or instead add a button to tell people to open the example in the separate tab

MDN metadata

Page report details
@skyclouds2001 skyclouds2001 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 28, 2024
@github-actions github-actions bot added the Content:CSS Cascading Style Sheets docs label Nov 28, 2024
@skyclouds2001
Copy link
Contributor Author

similar macros include JSFiddleEmbed EmbedLiveSample EmbedInteractiveExample EmbedYouTube EmbedGHLiveSample

@Josh-Cena
Copy link
Member

Duplicate of mdn/yari#12387

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists Content:CSS Cascading Style Sheets docs
Projects
None yet
Development

No branches or pull requests

2 participants