-
Notifications
You must be signed in to change notification settings - Fork 382
Closed
Labels
Description
Bug Description
Classes with slashes (such as .w-1/4) are not included in the CSS output on AMP pages.
Expected Behaviour
If the HTML marktup contains a CSS class with a slash (such as class="w-1/4") the styling for that class should be included in the CSS output.
Steps to reproduce
- Edit a template file (such as
single.php). - add a CSS class with a slash (such as
<h1 class="w-1/4">Blah...</h1>). - add styling for that CSS class (such as
.w-1/4 { width: 25%; }) or load Tailwind CSS . - Visit the regular version of the page and see that the styling is applied.
- Visit the AMP version of the page and see that the styling is not applied.
Additional context
- WordPress version: 5.4.2
- Plugin version: 1.5.4
- AMP plugin template mode: Transitional
Classes with slashes is a common practice in the popular Tailwind CSS framework.
Do not alter or remove anything below. The following sections will be managed by moderators only.