-
Notifications
You must be signed in to change notification settings - Fork 759
[css-display] Use "computes to" instead of "behaves as" for display: contents on unusual elements. #2755
Copy link
Copy link
Closed
Closed
Copy link
Labels
Description
Issue body actions
display: contents behaves as display: none.
Which means that the computed value of display should still be contents. This adds unnecessary complexity, and this is not how all engines implementing this section right work.
In particular, it requires a mapping from element to "is really display contents", or something of the sort. Firefox used to have that, but it caused a lot of performance issues for no gain, so I removed it in https://bugzilla.mozilla.org/show_bug.cgi?id=1303605.
(Note that I removed that mapping earlier without realizing the correctness issue it introduced, css-display-3Current WorkCurrent Work
Type
Projects
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.