-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Further preserve original CSS cascade when hoisting late-printed styles #10601
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
Open
westonruter
wants to merge
27
commits into
WordPress:trunk
Choose a base branch
from
westonruter:trac-64354-fix-hoisted-css-cascade
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+335
−124
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
523be88
Preserve original CSS cascade when hoisting late-printed styles
westonruter 2fb1c42
Ensure styles for third-party blocks get printed after classic-theme-…
westonruter 3993e53
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter 51c47cf
Mostly account for styles enqueued at enqueued_block_assets
westonruter 357f746
Fix insertion of global styles and third-party block styles
westonruter c6d0732
Handle omission of classic-theme-styles
westonruter ba78b09
Add test case for no styles enqueued at enqueued_block_assets
westonruter d6c84c0
Add comments
westonruter 1f09f3d
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter a1e1649
Address duplication in data provider
westonruter 1f2fc4c
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter 9743d21
Merge branch 'trunk' into trac-64354-fix-hoisted-css-cascade
westonruter fac7eb9
Fix typo in comment
westonruter a5c5141
Remove extraneous word in comment
westonruter d92b17f
Improve phrasing
westonruter 2dd558f
Did subject-verb agreement
westonruter 1ea3fa1
End comments in period not comma
westonruter 07b53d7
Add missing ticket reference
westonruter eb33c46
Avoid adding extraneous newlines for empty stylesheets
westonruter 05d1014
Fix grammatical issue in comment
westonruter 66e0833
Fix parenthesis position in comment
westonruter 664487f
Fix grammar in comment
westonruter dd4bb10
Avoid printing extra newline in styles in another case
westonruter 8d3b852
Avoid printing yet more newlines
westonruter adb6abc
Merge branch 'trunk' into trac-64354-fix-hoisted-css-cascade
westonruter e028611
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter 26154b8
Remove insertion of extra newlines
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re: #10601 (comment)
We might add a test case that includes
block-style-variation-styles. However, because this is being removed here, the result is that they will not get hoisted up to be inserted before the custom styles. They will get appended to the end of theHEADwhich will preserve the original cascade. This can be seen in the tests for howcore-block-supportsis appearing at the every end of the cascade.