Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Nov 8, 2024

A component may contain multiple inline styles that will originate from the same containing file. The content of the processed style is sent directly to the Angular compiler. However, any additional result files are collected and emitted in the application output. In most cases, this worked as expected as inline styles rarely had resource references that would overwrite each other. However, the potential is present for later inline styles for a component to overwrite these output files. To avoid this potential problem, the internal identifier now accounts for both the class name and order of the inline styles. This ensures that each inline style retains a unique additional results entry.

…al results

A component may contain multiple inline styles that will originate from the
same containing file. The content of the processed style is sent directly
to the Angular compiler. However, any additional result files are collected
and emitted in the application output. In most cases, this worked as expected
as inline styles rarely had resource references that would overwrite each other.
However, the potential is present for later inline styles for a component to
overwrite these output files. To avoid this potential problem, the internal
identifier now accounts for both the class name and order of the inline styles.
This ensures that each inline style retains a unique additional results entry.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Nov 8, 2024
@clydin clydin added this to the v19 Candidates milestone Nov 8, 2024
@clydin clydin requested a review from alan-agius4 November 8, 2024 01:24
@clydin clydin linked an issue Nov 8, 2024 that may be closed by this pull request
1 task
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 8, 2024
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 8, 2024
@alan-agius4 alan-agius4 merged commit cdad256 into angular:main Nov 8, 2024
35 checks passed
@alan-agius4
Copy link
Collaborator

The changes were merged into the following branches: main, 19.0.x

@clydin clydin deleted the application/inline-style-results branch November 8, 2024 11:50
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strange 404 CSS error on ng serve, maybe related to hashing?

2 participants