Skip to content

Commit

Permalink
cl/421353709 Allow !important inside style amp-noscript. (#37399)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Grothaus <greggrothaus@google.com>
  • Loading branch information
MichaelRybak and Greg Grothaus committed Jan 18, 2022
1 parent 5494590 commit 9bfce34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion validator/testdata/feature_tests/noscript_style.html
Expand Up @@ -12,7 +12,7 @@
<script async src="https://cdn.ampproject.org/v0.js"></script>
<noscript>
<style amp-noscript>
.foo { color: red; }
.foo { color: red !important; }
</style>
</noscript>
</head>
Expand Down
2 changes: 1 addition & 1 deletion validator/testdata/feature_tests/noscript_style.out
Expand Up @@ -13,7 +13,7 @@ PASS
| <script async src="https://cdn.ampproject.org/v0.js"></script>
| <noscript>
| <style amp-noscript>
| .foo { color: red; }
| .foo { color: red !important; }
| </style>
| </noscript>
| </head>
Expand Down
1 change: 1 addition & 0 deletions validator/validator-css.protoascii
Expand Up @@ -1364,6 +1364,7 @@ tags: { # <style amp-noscript>, [AMP]
"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#maximum-size"

css_spec: {
allow_important: true
at_rule_spec: {
name: 'media'
media_query_spec: {
Expand Down

0 comments on commit 9bfce34

Please sign in to comment.