RESOLVED INVALID 218202
[LFC] Do not use RenderStyle padding values unless padding is set
https://bugs.webkit.org/show_bug.cgi?id=218202
Summary [LFC] Do not use RenderStyle padding values unless padding is set
zalan
Reported 2020-10-26 13:40:42 PDT
ssia
Attachments
Patch (1.91 KB, patch)
2020-10-26 13:45 PDT, zalan
koivisto: review+
zalan
Comment 1 2020-10-26 13:45:31 PDT
Antti Koivisto
Comment 2 2020-10-26 14:26:20 PDT
Comment on attachment 412351 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=412351&action=review > Source/WebCore/ChangeLog:9 > + An unset padding value computes to the passed in maximum value. > + (e.g. valueForLength(style.paddingLeft(), 10) -> computed padding left is 10px) Unset padding should be 0. Which test is this failing?
zalan
Comment 3 2020-10-26 15:52:39 PDT
(In reply to Antti Koivisto from comment #2) > Comment on attachment 412351 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=412351&action=review > > > Source/WebCore/ChangeLog:9 > > + An unset padding value computes to the passed in maximum value. > > + (e.g. valueForLength(style.paddingLeft(), 10) -> computed padding left is 10px) > > Unset padding should be 0. Which test is this failing? So apparently RenderStyle::resetPadding sets Length(auto) :(
zalan
Comment 4 2020-10-26 15:53:40 PDT
will fix this by resetting the padding properly (to a valid value).
Note You need to log in before you can comment on or make changes to this bug.