Skip to content

Call to undefined method Sabberworm\CSS\CSSList\AtRuleBlockList::getSelectors() #2

@markusa86

Description

@markusa86

Hi Armin,
nice work. I found an Issue.
CssCoverageService.php Line 86.
$selectors = $child->getSelectors(); <- $child could be an Instance of DeclarationBlock and has no method called getSelectors.
CSS Example from fancybox to reproduce:
@supports (padding: max(0px)) { .fancybox-caption { padding: 75px max(44px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left)); } }
maybe a recursive function is the bette way.
For my test I quick fixed it to:
if ($child instanceof AtRuleBlockList) and duplicated the block and it works perfect.

Regards.
Markus

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions