Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS: Improve parsing of custom @-rules #8104

Merged

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