RESOLVED FIXED 229093
Top layer: handle display: contents and non out-of-flow position values
https://bugs.webkit.org/show_bug.cgi?id=229093
Summary Top layer: handle display: contents and non out-of-flow position values
Tim Nguyen (:ntim)
Reported 2021-08-13 13:51:35 PDT
In top layer: display: contents -> display: block; position: static/relative/sticky -> position: absolute;
Attachments
Patch (8.81 KB, patch)
2021-08-13 14:00 PDT, Tim Nguyen (:ntim)
no flags
Patch (9.00 KB, patch)
2021-08-13 15:24 PDT, Tim Nguyen (:ntim)
no flags
Patch (6.75 KB, patch)
2021-08-19 11:04 PDT, Tim Nguyen (:ntim)
no flags
Tim Nguyen (:ntim)
Comment 1 2021-08-13 14:00:34 PDT
Simon Fraser (smfr)
Comment 2 2021-08-13 14:11:32 PDT
Comment on attachment 435506 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435506&action=review > Source/WebCore/style/StyleAdjuster.cpp:583 > + if (!m_element && style.styleType() != PseudoId::Before && style.styleType() != PseudoId::After) { Would be nice to wrap the PseudoId::Before & PseudoId::After check in a function that is named using a spec-related term; maybe put it as a static function in some pseudo-related code.
Tim Nguyen (:ntim)
Comment 3 2021-08-13 15:24:41 PDT
Tim Nguyen (:ntim)
Comment 4 2021-08-13 15:26:46 PDT
(In reply to Simon Fraser (smfr) from comment #2) > Comment on attachment 435506 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435506&action=review > > > Source/WebCore/style/StyleAdjuster.cpp:583 > > + if (!m_element && style.styleType() != PseudoId::Before && style.styleType() != PseudoId::After) { > > Would be nice to wrap the PseudoId::Before & PseudoId::After check in a > function that is named using a spec-related term; maybe put it as a static > function in some pseudo-related code. non-before/after pseudo element? not sure. I left it as it was, not sure how to improve it really.
Tim Nguyen (:ntim)
Comment 5 2021-08-14 00:23:29 PDT
(In reply to Tim Nguyen (:ntim) from comment #4) > (In reply to Simon Fraser (smfr) from comment #2) > > Comment on attachment 435506 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=435506&action=review > > > > > Source/WebCore/style/StyleAdjuster.cpp:583 > > > + if (!m_element && style.styleType() != PseudoId::Before && style.styleType() != PseudoId::After) { > > > > Would be nice to wrap the PseudoId::Before & PseudoId::After check in a > > function that is named using a spec-related term; maybe put it as a static > > function in some pseudo-related code. > > non-before/after pseudo element? not sure. I left it as it was, not sure how > to improve it really. hmm maybe non tree-abiding pseudo element
Tim Nguyen (:ntim)
Comment 6 2021-08-14 01:13:44 PDT
(In reply to Tim Nguyen (:ntim) from comment #5) > (In reply to Tim Nguyen (:ntim) from comment #4) > > (In reply to Simon Fraser (smfr) from comment #2) > > > Comment on attachment 435506 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=435506&action=review > > > > > > > Source/WebCore/style/StyleAdjuster.cpp:583 > > > > + if (!m_element && style.styleType() != PseudoId::Before && style.styleType() != PseudoId::After) { > > > > > > Would be nice to wrap the PseudoId::Before & PseudoId::After check in a > > > function that is named using a spec-related term; maybe put it as a static > > > function in some pseudo-related code. > > > > non-before/after pseudo element? not sure. I left it as it was, not sure how > > to improve it really. > > hmm maybe non tree-abiding pseudo element Well, this seems inconsistent across browsers, so I filed a spec issue: https://github.com/w3c/csswg-drafts/issues/6518 Will leave this unchanged for now (though there are improvements that could be done to match other browsers).
Tim Nguyen (:ntim)
Comment 7 2021-08-19 11:04:19 PDT
Tim Nguyen (:ntim)
Comment 8 2021-08-19 11:05:11 PDT
Radar WebKit Bug Importer
Comment 9 2021-08-19 11:06:21 PDT
Note You need to log in before you can comment on or make changes to this bug.