Bug 229135

Summary: Make most pseudo elements with display: contents; compute display value to inline by default
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, koivisto, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/w3c/csswg-drafts/issues/6518
Attachments:
Description Flags
Patch none

Tim Nguyen (:ntim)
Reported 2021-08-16 04:31:47 PDT
Except ::before/::after/::file-selector-button where display: contents should just work. Except ::backdrop where it should compute to block (though this will be handled along with the backdrop + top layer implementation).
Attachments
Patch (1.86 KB, patch)
2021-10-15 02:05 PDT, Tim Nguyen (:ntim)
no flags
Tim Nguyen (:ntim)
Comment 1 2021-08-16 04:32:03 PDT
Radar WebKit Bug Importer
Comment 2 2021-08-23 04:32:15 PDT
Tim Nguyen (:ntim)
Comment 3 2021-10-15 02:05:21 PDT
Antti Koivisto
Comment 4 2021-10-15 02:37:37 PDT
this needs a test
Tim Nguyen (:ntim)
Comment 5 2021-10-15 04:12:36 PDT
(In reply to Antti Koivisto from comment #4) > this needs a test Do you know where this case is ever reached? I'm tempted to remove the block if it isn't reached.
Antti Koivisto
Comment 6 2021-10-15 05:37:34 PDT
> Do you know where this case is ever reached? I'm tempted to remove the block > if it isn't reached. No, but I would expect that the person who wants to change the code does.
Tim Nguyen (:ntim)
Comment 7 2021-10-15 08:25:16 PDT
Will look into this when I have more time.
Ahmad Saleem
Comment 8 2025-05-11 12:13:07 PDT
is it now Not Applicable since Gecko has bug filed against it? https://bugzilla.mozilla.org/show_bug.cgi?id=1418138 This part - style.setEffectiveDisplay(DisplayType::Inline); Don't know about: if (isInTopLayerOrBackdrop(style, m_element) || m_document.documentElement() == m_element)
Note You need to log in before you can comment on or make changes to this bug.