Closed Bug 1954140 Opened 1 month ago Closed 1 month ago

StyleAdjuster adjust_for_prohibited_display_contents should account for element-backed pseudo elements

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: lwarlow, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is needed for ::details-content support.

Summary: StyleResolver adjust_for_prohibited_display_contents should account for element-backed pseudo elements → StyleAdjuster adjust_for_prohibited_display_contents should account for element-backed pseudo elements
Flags: needinfo?(emilio)

I think I know what needs to happen here but the bit about ::before and ::after makes me not 100% sure.

Hi Luke - thanks for the work on this details stuff!

For planning purposes (and no pressure, just checking): were you planning to take this one and/or bug 1954142?

Yeah I plan to take at least this one and the element_backed psuedo parsing change one on. The other one I'll have to double check but I think I understand it.

(In reply to Luke Warlow from comment #1)

I think I know what needs to happen here but the bit about ::before and ::after makes me not 100% sure.

Just bailing out for element-backed pseudos seems fine. The comment is saying basically that ::before and ::after should support display: contents, but that's a larger, more annoying change, see bug 1418138.

Flags: needinfo?(emilio)

This will be tested after a few other related changes land by tests like
testing/web-platform/tests/html/rendering/the-details-element/details-blockification.html

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a7f3fc99d0b Don't forbid display: contents on element-backed pseudo-elements. r=lukewarlow
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: