Skip to content

CSSRule->__toString doesn't work with sized values #3

Closed
@lieutdan13

Description

@lieutdan13

If I have a CSS rule as follows (this is in your example css):
div.rating-cancel,div.star-rating{width:17px;height:15px;}

The CSSRule->__toString either throws an error, or it looks like this:
width: Object;

The problem is on line 707 when it tries to implode a comma into the values. When a value is a CSSSize, it produces the above result.

For you to test this, in your CSSParserTests.php file,
change line 19 to:
$oDoc = $oParser->parse();
and add this line after the catch clause
echo $oDoc->__toString();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions