You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ampproject/amphtml#20609 AMP now allows a noscript > style[amp-noscript] to style elements on pages for which the user has JavaScript disabled. Currently the AMP plugin unwraps all noscript elements (unless they have a data-amp-no-unwrap attribute) so any nested style will then automatically be added to style[amp-custom]. However, when unwrapping has been disabled (per #6528 and #6546), any such styles should be moved not to style[amp-custom] but rather to noscript > style[amp-noscript].
Feature description
In ampproject/amphtml#20609 AMP now allows a
noscript > style[amp-noscript]
to style elements on pages for which the user has JavaScript disabled. Currently the AMP plugin unwraps allnoscript
elements (unless they have adata-amp-no-unwrap
attribute) so any nestedstyle
will then automatically be added tostyle[amp-custom]
. However, when unwrapping has been disabled (per #6528 and #6546), any such styles should be moved not tostyle[amp-custom]
but rather tonoscript > style[amp-noscript]
.See also ampproject/amp-toolbox-php#349.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: