gecko-dev/layout/reftests/css-display
Emilio Cobos Álvarez e5e108a524 Bug 1453702: [css-display] Move unboxing to style, and handle display: contents before other suppressions. r=mats,xidorn
This also adopts the resolution of [1] while at it, and switches XUL to not
support display: contents until a use case appears.

This makes our behavior consistent both with the spec and also in terms of
handling dynamic changes to stuff that would otherwise get suppressed.

Also makes us consistent with both Blink and WebKit in terms of computed style.
We were the only ones respecting "behaves as display: none" without actually
computing to display: none. Will file a spec issue to get that changed.

It also makes us match Blink and WebKit in terms of respecting display: contents
before other suppressions, see the reftest which I didn't write as a WPT
(because there's no spec supporting neither that or the opposite of what we do),
where a <g> element respects display: contents even though if it had any other
kind of display value we'd suppress the frame for it and all the descendants
since it's an SVG element in a non-SVG subtree.

Also, this removes the page-break bit from the display: contents loop, which I
think is harmless.

As long as the tests under style are based in namespace id / node name /
traversal parent, this should not make style sharing go wrong in any way, since
that's the first style sharing check we do at [2].

The general idea under this change is making all nodes with computed style of
display: contents actually honor it. Otherwise there's no way of making the
setup sound except re-introducing something similar to all the state tracking
removed in bug 1303605.

[1]: https://github.com/w3c/csswg-drafts/issues/2167
[2]: https://searchfox.org/mozilla-central/rev/fca4426325624fecbd493c31389721513fc49fef/servo/components/style/sharing/mod.rs#700

MozReview-Commit-ID: JoCKnGYEleD
2018-04-16 12:56:30 +02:00
..
display-contents-495385-2d-ref.html
display-contents-495385-2d.html
display-contents-acid-dyn-1.html
display-contents-acid-dyn-2.html
display-contents-acid-dyn-3.html
display-contents-acid-ref.html Bug 1427292: [css-display] Update display: contents on Unusual Elements to the spec. r=mats 2018-01-06 21:52:51 +01:00
display-contents-acid.html Bug 1427292: [css-display] Update display: contents on Unusual Elements to the spec. r=mats 2018-01-06 21:52:51 +01:00
display-contents-dyn-insert-text-ref.html
display-contents-dyn-insert-text.html
display-contents-fieldset-ref.html Bug 1427292: [css-display] Update display: contents on Unusual Elements to the spec. r=mats 2018-01-06 21:52:51 +01:00
display-contents-fieldset.html
display-contents-generated-content-2.html
display-contents-generated-content-ref.html
display-contents-generated-content.html
display-contents-list-item-child-ref.html
display-contents-list-item-child.html
display-contents-shadow-dom-1-ref.html Bug 1404789: Remove <style scoped> test from display-contents-shadow-dom-1.html. r=bz 2017-10-18 17:45:46 +02:00
display-contents-state-change-ref.html
display-contents-state-change.html
display-contents-style-inheritance-1-dom-mutations.html Bug 1417924: Don't test <style scoped> in display: contents tests. r=heycam 2017-11-16 15:37:25 +01:00
display-contents-style-inheritance-1-ref.html Bug 1417924: Don't test <style scoped> in display: contents tests. r=heycam 2017-11-16 15:37:25 +01:00
display-contents-style-inheritance-1-stylechange.html Bug 1417924: Don't test <style scoped> in display: contents tests. r=heycam 2017-11-16 15:37:25 +01:00
display-contents-style-inheritance-1.html Bug 1417924: Don't test <style scoped> in display: contents tests. r=heycam 2017-11-16 15:37:25 +01:00
display-contents-suppression-dynamic-ref.html Bug 1453702: [css-display] Move unboxing to style, and handle display: contents before other suppressions. r=mats,xidorn 2018-04-16 12:56:30 +02:00
display-contents-suppression-dynamic.html Bug 1453702: [css-display] Move unboxing to style, and handle display: contents before other suppressions. r=mats,xidorn 2018-04-16 12:56:30 +02:00
display-contents-tables-2.xhtml
display-contents-tables-3-ref.xhtml
display-contents-tables-3.xhtml
display-contents-tables-ref.xhtml
display-contents-tables.xhtml
display-contents-visibility-hidden-2.html
display-contents-visibility-hidden-ref.html
display-contents-visibility-hidden.html
display-contents-writing-mode-1-ref.html
display-contents-writing-mode-1.html
display-contents-writing-mode-2-ref.html
display-contents-writing-mode-2.html
display-contents-xbl-2-ref.xul
display-contents-xbl-2.xul
display-contents-xbl-3-ref.xul
display-contents-xbl-3.xul
display-contents-xbl-4-ref.xul
display-contents-xbl-4.xul
display-contents-xbl-5.xul
display-contents-xbl-6-ref.html
display-contents-xbl-6.xhtml
display-contents-xbl-7-ref.html
display-contents-xbl-7.xhtml
display-contents-xbl-ref.html
display-contents-xbl.xhtml
display-flow-root-001-ref.html
display-flow-root-001.html
reftest.list Bug 1453702: [css-display] Move unboxing to style, and handle display: contents before other suppressions. r=mats,xidorn 2018-04-16 12:56:30 +02:00