Created attachment 453874 [details] testcase <!DOCTYPE html> <style> @layer { #target { display: revert-layer; } } </style> <div id="target"></div> <script> document.body.append(getComputedStyle(target).display); </script> Actual: inline Expected: block Chromium and Firefox do it correctly. Spec: https://drafts.csswg.org/css-cascade-5/#revert-layer > If there are no lower-priority declarations in the same cascade origin as the revert-layer value, the cascaded value will roll back to the previous origin.
Created attachment 453879 [details] Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Committed r290864 (248095@main): <https://commits.webkit.org/248095@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453879 [details].
<rdar://problem/89854114>