Support format allow attribute of iframe (#17879)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
11 files changed
+302
-5
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#### Support format `allow` attribute of iframe element (#17879 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```html
|
||||
<!-- Input -->
|
||||
<iframe allow="layout-animations 'none'; unoptimized-images 'none'; oversized-images 'none'; sync-script 'none'; sync-xhr 'none'; unsized-media 'none';"></iframe>
|
||||
|
||||
<!-- Prettier stable -->
|
||||
<iframe allow="layout-animations 'none'; unoptimized-images 'none'; oversized-images 'none'; sync-script 'none'; sync-xhr 'none'; unsized-media 'none';"></iframe>
|
||||
|
||||
<!-- Prettier main -->
|
||||
<iframe
|
||||
allow="
|
||||
layout-animations 'none';
|
||||
unoptimized-images 'none';
|
||||
oversized-images 'none';
|
||||
sync-script 'none';
|
||||
sync-xhr 'none';
|
||||
unsized-media 'none';
|
||||
"
|
||||
></iframe>
|
||||
```
|
||||
Reference in new issue
Block a user