Responsive iframes

Aperta
#1,443 1 commento 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css, html, javascript

Direzione di ricerca

The issue is about implementing tests for the 'frame-sizing' CSS feature in the web-platform-tests suite. Start by reviewing the specification at drafts.csswg.org/css-sizing-4/#responsive-iframes and the existing test results at wpt.fyi/results/css/css-sizing/responsive-iframe. Look at the test structure in the repository to understand how CSS sizing tests are organized. 'Done' means adding new test cases that cover the embedding opt-in, embedded opt-in, and dynamic updates as described, and ensuring they pass in browsers that support the feature.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

focus-area-proposal
Description

Embedding third-party content (e.g., payment widgets, comment sections, social posts, live charts, embedded demos) is one of the most fundamental architecture patterns on the web.

However, <iframe> elements have historically been unable to automatically size themselves to the natural dimensions of their embedded documents without producing scrollbars or requiring brittle postMessage() polyfills .

Responsive Iframes (part of CSS Box Sizing Module Level 4) introduces a standardized, security-preserving mechanism for seamless frame sizing and consists of three parts:

  • Embedding Opt-in: The parent document specifies frame-sizing: content-height | content-width | content-block-size | content-inline-size | none on the <iframe>
  • Embedded Opt-in: The embedded document includes <meta name="responsive-embedded-sizing"> to explicitly authorize sharing its layout intrinsic size
  • Dynamic Updates: The embedded document can trigger re-measurements via window.requestResize()
Specification

https://drafts.csswg.org/css-sizing-4/#responsive-iframes

web-feature

frame-sizing

Test Links

https://wpt.fyi/results/css/css-sizing/responsive-iframe

Additional Signals
Lingua principale
JavaScript
Stelle
591
Fork
39
Merge medio
3h 8m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di web-platform-tests/interop

Tutte le issue di web-platform-tests/interop

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.