Skip to content

Support animation-timeline: view(), calc(sibling-index() * 20ms) #1635

Description

@felipemarcos

Steps to reproduce

<?php
require __DIR__ . '/vendor/autoload.php';

use Sabberworm\CSS\Parser;
use Sabberworm\CSS\Settings;

$css = '.a { animation-timeline: view(); opacity: 0.5; }';

// Lenient: the declaration disappears.
echo (new Parser($css, Settings::create()->withLenientParsing()))->parse()->render(), "\n";

// Strict: throws.
echo (new Parser($css, Settings::create()->withLenientParsing(false)))->parse()->render(), "\n";

Actual

.a {opacity: .5;}

PHP Fatal error: Uncaught Sabberworm\CSS\Parsing\UnexpectedTokenException:
Token “ ) ” (literal) not found. Got “();”. [line no: 1]

Expected

.a {animation-timeline: view();opacity: .5;}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    css4Relating to features introduced in CSS4enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions