| Summary: | Top layer: handle display: contents and non out-of-flow position values | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 84635 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tim Nguyen (:ntim)
2021-08-13 13:51:35 PDT
Created attachment 435506 [details]
Patch
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. Created attachment 435522 [details]
Patch
(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. (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 (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). Created attachment 435886 [details]
Patch
Committed r281252 (240688@main): <https://commits.webkit.org/240688@main> |