ampproject / ampproject/amphtml

<amp-call-tracking> doesn't work when is has 'display: contents'

Open
#31,784 4 comments 0 reactions 1 assignee Claimed by @micajuine-ho View on GitHub
P2: Soon Stale Type: Bug WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## What's the issue?

I experienced this issue on a site where the amp-call-tracking element had its display property set to contents, and amp-call-tracking didn't change the number as it was supposed to.

## How do we reproduce the issue?

I've made a codepen with this exact issue reproduced.
https://codepen.io/sunturion/pen/qBaYWVX

in the first instance, the amp-call-tracking element is `display: block`
and in the second instance it is set to `display: contents` and as you can see, it doesn't work.

## What browsers are affected?

This is the same on all supported browsers

## Which AMP version is affected?

I havn't tested this in older versions of AMP, or noticed this issue before.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.