Bug 1740382 [wpt PR 31571] - [@layer] Add a WPT for 'revert-layer' in the style attribute, a=testonly

Automatic update from web-platform-tests
[@layer] Add a WPT for 'revert-layer' in the style attribute

The behavior is recently resolved by CSSWG:

https://github.com/w3c/csswg-drafts/issues/6743#issuecomment-960302655

Bug: 1095765
Change-Id: I3ba69a555fa68b1efb1c40fd9a5362387fd4d541
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3271505
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#940370}

--

wpt-commits: 8154494727c8990112979fbf77fda4bee98f4bae
wpt-pr: 31571
This commit is contained in:
Xiaocheng Hu 2021-11-13 10:08:53 +00:00 коммит произвёл moz-wptsync-bot
Родитель ee0ee2a072
Коммит 9339ad3bc8
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,16 @@
<!DOCTYPE html>
<title>CSS Cascade Layers: 'revert-layer' from the style attribute to other style sheets</title>
<link rel="help" href="https://drafts.csswg.org/css-cascade-5/#revert-layer">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<link rel="match" href="reference/ref-filled-green-100px-square.xht">
<style>
#target {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="target" style="background-color: red; background-color: revert-layer"></div>