Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
using ?. on CSS
  • Loading branch information
mszylkowski committed Nov 22, 2021
commit 8b837fe853b6b9cf6e318d47992736f0473c0f07
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/amp-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class AmpStory extends AMP.BaseElement {
// prerendering, because of a height incorrectly set to 0.
this.mutateElement(() => {});

if (!this.win.CSS.supports || !this.win.CSS.supports('height', '100dvh')) {
if (!this.win.CSS?.supports?.('height: 1dvh')) {
this.onResize_(this.getViewport().getSize());
}

Expand Down