PHP CSS Parser fails to parse turn CSS unit #4604
Labels
Bug
Something isn't working
Changelogged
Whether the issue/PR has been added to release notes.
CSS
P1
Medium priority
WS:Core
Work stream for Plugin core
Milestone
Bug Description
The PHP CSS Parser is failing to parse the CSS unitsvmin
andvmax
, inserting spaces so they becomevm in
andvm ax
.Similarly, the
turn
unit is also corrupted but in a different way:1turn
gets serialized out as1 turn
which is a syntax error.Originally reported in the support forum.
Expected Behaviour
All CSS units should be preserved.
Steps to reproduce
Add this HTML to a Custom HTML block:
Compare the AMP with the non-AMP version. The non-AMP version appears as a box and spins:
Whereas the AMP does not (and no animation appears):
Update: In
develop
it the element now appears as a box. Thevmax
andvmin
units were fixed with #4610.The PHP CSS Parser incorrectly is injecting spaces into the units:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
vmin
andvmax
first beforevm
.turn
unit.QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: