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
fix(core): handle !important in style property value #39603
Conversation
66543f6
to
16c63a5
Compare
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.
Looks good, thanks for the fix @crisbeto 👍 Just left a couple comments.
* Fixes that the Ivy styling logic wasn't accounting for `!important` in the property value. * Fixes that the default DOM renderer only sets `!important` on a property with a dash in its name. * Accounts for the `flags` parameter of `setStyle` in the server renderer. Fixes angular#35323.
08ca3a5
to
84a96f7
Compare
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.
Thanks for the updates @crisbeto 👍
84a96f7
to
5e3b918
Compare
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.
Reviewed-for: size-tracking
@@ -12,7 +12,7 @@ | |||
"master": { | |||
"uncompressed": { | |||
"runtime-es2015": 3037, | |||
"main-es2015": 448922, | |||
"main-es2015": 449483, |
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.
From the most recent CI run in master:
SUCCESS: Commit 5205db5564f21c214a96000e018a08f3de7d44d8 uncompressed main-es2015 did NOT cross size threshold of 500 bytes or >1% (expected: 448922, actual: 449338).
The current size is 449338
and the size in the PR is 449483
, so it's only 145
chars difference which looks reasonable.
FYI presubmit is successful for the changes in this PR. |
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.
LGTM
Reviewed-for: size-tracking
* Fixes that the Ivy styling logic wasn't accounting for `!important` in the property value. * Fixes that the default DOM renderer only sets `!important` on a property with a dash in its name. * Accounts for the `flags` parameter of `setStyle` in the server renderer. Fixes angular#35323. PR Close angular#39603
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Also fixes #12009 |
!important
in the property value.!important
on a property with a dash in its name.flags
parameter ofsetStyle
in the server renderer.Fixes #35323.