Add <meta name="responsive-embedded-sizing">#12444
Conversation
4f63023 to
5d63e86
Compare
|
If either name, http-equiv, or itemprop is specified in meta element, then the content attribute must also be specified. |
|
https://html.spec.whatwg.org/#the-meta-element
But just below:
So |
The above specifications are for user agents, not for authors.
|
|
@annevk can you help whether the @mtrootyy wrote:
|
5d63e86 to
ad98ae3
Compare
ad98ae3 to
49c5445
Compare
fe4fc74 to
615fb1c
Compare
There was a problem hiding this comment.
(Unofficial as I'm not an approver and we need multi implementer support)
I think this PR does the right thing in a way that's concise and consistent enough.
Editorially I can't say about maintaining the outdated wording style of existing meta tag or moving forward.
| <div algorithm> | ||
| <p>If a <code>meta</code> element is | ||
| <span data-x="node is inserted into a document">inserted into the document</span>, | ||
| the user agent must run the following algorithm:</p> |
There was a problem hiding this comment.
I think this wording style is outdated but will leave to @annevk whether this needs to be consistent with what's around it or with new style.
There was a problem hiding this comment.
OK I looked at other meta elements and you need to check for the name here. Are you ignoring the content? If so it's good to add a note.
Does changing the name attribute work? Is the matching case-sensitive?
Follow based on how other meta elements are speced.
There was a problem hiding this comment.
Thanks again, I read others and followed them. Can you check?
|
@kojiishi the tests link points to existing tests in wpt.fyi that are not marked tentative. |
I removed
Yes, I think so, though they're based on the previous understanding of the "immutable" in the CSS WG. Among the wpt tests:
I'll update/add tests and Blink once this discussion is settled down. |
| <dfn data-x="concept-document-responsive-embedded-sizing">responsive embedded sizing</dfn>, | ||
| initially false.</p> |
There was a problem hiding this comment.
| <dfn data-x="concept-document-responsive-embedded-sizing">responsive embedded sizing</dfn>, | |
| initially false.</p> | |
| <dfn export data-x="concept-document-responsive-embedded-sizing">responsive embedded | |
| sizing</dfn>, initially false.</p> |
There was a problem hiding this comment.
Also perhaps add a note of where this is used.
There was a problem hiding this comment.
Done, thanks, and added a note.
| <div algorithm> | ||
| <p>If a <code>meta</code> element is | ||
| <span data-x="node is inserted into a document">inserted into the document</span>, | ||
| the user agent must run the following algorithm:</p> |
There was a problem hiding this comment.
OK I looked at other meta elements and you need to check for the name here. Are you ignoring the content? If so it's good to add a note.
Does changing the name attribute work? Is the matching case-sensitive?
Follow based on how other meta elements are speced.
This adds `<meta name="responsive-embedded-sizing">` as an immutable standardized name. This is used by the CSS [responsive embedded sizing flag]. [responsive embedded sizing flag]: https://drafts.csswg.org/css-sizing-4/#document-responsive-embedded-sizing-flag
615fb1c to
6404dc1
Compare
| to true.<p></li> | ||
| </ol> | ||
| </div> | ||
| </dd> |
There was a problem hiding this comment.
The following needs to be specified for authors:
If value of name attribute is specified an ASCII case-insensitive match for "responsive-embedded-sizing", the value of content attribute must be specified the empty string.
|
WHATNOT notes/minutes: Responsive Iframe Meta Tag Proposal: Noam Rosenthal introduced a proposal (PR 12444) to add a meta tag for responsive embedded sizing, which serves as an opt-in for parents to resize iframes. Luke questioned if domain-specific opt-ins are necessary, but Simon Pieters noted that CSP frame ancestors already provide existing protections. The group discussed whether the meta tag provides sufficient control over cross-origin information access, with Noam Rosenthal comparing the functionality to an explicit post-message opt-in. Responsive Iframe Data Leakage Concerns: The group discussed potential privacy risks, specifically whether responsive iframes could allow an origin to infer information about a user (e.g., whether they are logged into a site) based on size changes. Emilio Cobos Álvarez noted that the CSS working group previously discussed these risks and deemed them manageable if the parent page manages the sizing. Simon Pieters raised concerns regarding how to handle navigations and potential data leakage between pages. Responsive Iframe Implementation and Documentation: Luke suggested that browsers should provide console warnings if an iframe opts into this feature without appropriate frame ancestor restrictions. Noam Rosenthal committed to updating the security explainer for the PR and consulting with Koji to ensure privacy concerns are addressed. Philip Jägenstedt clarified that fence frames, while still present in Chromium code, are not currently being actively developed. |
This adds
<meta name="responsive-embedded-sizing">as an immutable standardized name.This is used by the CSS responsive embedded sizing flag.
(See WHATWG Working Mode: Changes for more details.)
/dom.html ( diff )
/infrastructure.html ( diff )
/semantics.html ( diff )