[Webkit-unassigned] [Bug 258975] Web Inspector: Font Panel: CSS font property values marked !important don't get overridden when using the interactive editing controls.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 25 13:27:19 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258975
--- Comment #7 from Razvan Caliman <rcaliman at apple.com> ---
(In reply to Razvan Caliman from comment #4)
> I can confirm that, indeed, using the slider for Weight in the Font sidebar
> panel won't change the value of the `font-weight` CSS property on the inline
> style for the element:
>
> ```
> <div class="display-3 fw-medium my-5" style="word-break:
> break-word;">Themes.tiki.org</div>
> ```
>
> A summary investigation shows there's a conflict with `font-weight 500
> !important` set by the `fw-medium` CSS class. This is indeed a problem. I'll
> retitle this bug to identify this.
To fix this issue, we need to ensure that:
1) the correct `WI.CSSProperty` is returned by `WI.FontStyles._effectiveWritablePropertyForName()` when there are multiple properties with the same name and/or the CSS property value contains `!important`
2) tf the CSS property has `!important`, the new value written by `WI.FontStyles.writeFontVariation()` preserves that so the property continues to apply.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231025/de844a01/attachment-0001.htm>
More information about the webkit-unassigned
mailing list