ampproject / ampproject/amp-wp

There is a CSS syntax error in the "style amp-custom" tag.

Open
#8,040 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
PHP
Stars
1.8k
Forks
378
Avg merge
1d 15h
Merged PRs (30d)
10

Description

### Bug Description

![Image](https://github.com/user-attachments/assets/00dd9f14-8847-45c4-aab7-811fe6ccfecf)

### Expected Behaviour

There is a CSS syntax error in the "style amp-custom" tag.

### Screenshots

_No response_

### PHP Version

8.4

### Plugin Version

2.5.5

### AMP plugin template mode

Reader

### WordPress Version

6.8.1

### Site Health

_No response_

### Gutenberg Version

_No response_

### OS(s) Affected

_No response_

### Browser(s) Affected

_No response_

### Device(s) Affected

_No response_

### Acceptance Criteria

_No response_

### Implementation Brief

_No response_

### QA Testing Instructions

_No response_

### Demo

_No response_

### Changelog Entry

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with PHP 8.4, WordPress 6.8.1, plugin version 2.5.5, and Reader template mode, then inspect the generated "style amp-custom" content. The work is done when that style contains valid CSS and the syntax error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, php
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.