Skip to content

CSS: Improve parsing of custom @-rules#8104

Merged
matthiasblaesing merged 1 commit intoapache:masterfrom
matthiasblaesing:css_at_rule_space_brace
Jan 11, 2025
Merged

CSS: Improve parsing of custom @-rules#8104
matthiasblaesing merged 1 commit intoapache:masterfrom
matthiasblaesing:css_at_rule_space_brace

Conversation

@matthiasblaesing
Copy link
Contributor

It was observed, that custom @-rules failed to properly parse when there was no whitespace present between the rule and the opening brace.

While this parsed:

    @-ms-viewport {
        width:1024px;
    }

This was not:

    @-ms-viewport{
        width:1024px;
    }

It was observed, that custom @-rules failed to properly parse when
there was no whitespace present between the rule and the opening brace.

While this parsed:

    @-ms-viewport {
        width:1024px;
    }

This was not:

    @-ms-viewport{
        width:1024px;
    }
@matthiasblaesing matthiasblaesing added CSS [ci] enable web job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Jan 1, 2025
@matthiasblaesing matthiasblaesing added this to the NB25 milestone Jan 1, 2025
@matthiasblaesing
Copy link
Contributor Author

@DarryStraits you raised the issue about failed parsing of the sample depicted in the PR description. A test built is available from the checkpage or directly. Please see if that fixes your issue.

Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I could see, this seems to be fine.

@matthiasblaesing
Copy link
Contributor Author

@lkishalmi thanks for review

@matthiasblaesing matthiasblaesing merged commit b556042 into apache:master Jan 11, 2025
31 checks passed
@matthiasblaesing matthiasblaesing deleted the css_at_rule_space_brace branch January 11, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) CSS [ci] enable web job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments