You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-display] Use "computes to" instead of "behaves as" for display: contents on unusual elements. #2755
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, https://bugzilla.mozilla.org/show_bug.cgi?id=1453702, which I fixed computing to none instead of contents, which also aligns with Blink and WebKit).
cc @lilles since he implemented the Blink style fixup, but I think he wouldn't have any objection about changing this, given it would adapt the spec to how Blink, Firefox and WebKit implement.
The Working Group just discussed Use "computes to" instead of "behaves as" for display: contents on unusual elements, and agreed to the following:
RESOLVED: serialize it out as none
RESOLVED: compute to none
The full IRC log of that discussion
<dael> Topic: Use "computes to" instead of "behaves as" for display: contents on unusual elements
<dael> github: https://github.com//issues/2755
<dael> fantasai: We had said that display contents behaves as display:none on certain elements like some SVG. There's an appendix of exactly which ones. emilio filed an issue to jsut say computes to display:none since that's easier from impl then handling that at used style time
<dael> fantasai: TabAtkins and I have not much of an opinion. Up to impl.
<dael> emilio: Do we clear everyone that impl computes to none?
<fantasai> s/Do we/To be/
<astearns> s/Do we/To be/
<dael> Rossen_: Any reason to do anything other than that? Sounds like there's interop.
<dael> Rossen_: Objections to serialize it out as none?
<dael> RESOLVED: serialize it out as none
<dael> RESOLVED: compute to none
Activity
emilio commentedon Jun 11, 2018
cc @lilles since he implemented the Blink style fixup, but I think he wouldn't have any objection about changing this, given it would adapt the spec to how Blink, Firefox and WebKit implement.
lilles commentedon Jun 11, 2018
Huh. I thought we did store the original display for computed style before adjusting. I think we're fine with either resolution.
lilles commentedon Jun 11, 2018
I misunderstood our OriginalDisplay() thing. Not used for getComputedStyle(). I support resolving this as proposed.
tabatkins commentedon Jun 11, 2018
Sounds fine to me. @fantasai, any objection?
fantasai commentedon Jun 11, 2018
WFM.
css-meeting-bot commentedon Jun 27, 2018
The Working Group just discussed
Use "computes to" instead of "behaves as" for display: contents on unusual elements, and agreed to the following:RESOLVED: serialize it out as noneRESOLVED: compute to noneThe full IRC log of that discussion
<dael> Topic: Use "computes to" instead of "behaves as" for display: contents on unusual elements<dael> github: https://github.com//issues/2755
<dael> fantasai: We had said that display contents behaves as display:none on certain elements like some SVG. There's an appendix of exactly which ones. emilio filed an issue to jsut say computes to display:none since that's easier from impl then handling that at used style time
<dael> fantasai: TabAtkins and I have not much of an opinion. Up to impl.
<dael> emilio: Do we clear everyone that impl computes to none?
<fantasai> s/Do we/To be/
<astearns> s/Do we/To be/
<dael> Rossen_: Any reason to do anything other than that? Sounds like there's interop.
<dael> Rossen_: Objections to serialize it out as none?
<dael> RESOLVED: serialize it out as none
<dael> RESOLVED: compute to none
[css-display-3] display: contents computes to display: none on replac…