зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1651074 [wpt PR 24486] - Upstream and update foreignObject isolation tests, a=testonly
Automatic update from web-platform-tests Upstream and update foreignObject isolation tests https://crrev.com/544756 ("Make <foreignObject> a stacking context") added svg-isolation-foreign-isolation.html which had an incorrect expectation. ForeignObject should create a stacking context [1] and everything that creates a stacking context is an 'isolated' group [2], so foreignObject should isolate. Our implementation is correct for html content in foreignObject but has a bug for svg content in foreignObject. This patch creates WPT tests for these two scenarios, and marks the svg variant as failing. [1] https://svgwg.org/svg2-draft/single-page.html#render-EstablishingStackingContex [2] https://drafts.fxtf.org/compositing-2/#csscompositingrules_CSS Bug: 1102803, 1101002 Change-Id: Ia5baceccab0be09eeec5e4682f16247a2881509b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2284631 Commit-Queue: Philip Rogers <pdr@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#785765} -- wpt-commits: db03cd2af9e67ab194dabd28f2a9384223d9e706 wpt-pr: 24486
This commit is contained in:
Родитель
97d8582dac
Коммит
f07bd07080
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<div style="width: 200px; height: 200px; background: lime; mix-blend-mode: difference"></div>
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<title>foreignObject should create an isolated group for html descendants</title>
|
||||
<meta name="assert" content="ForeignObject creates a stacking context which is an isolated group, so mix-blend-mode should not be affected by content outside the isolated group." />
|
||||
<link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#render-EstablishingStackingContex" />
|
||||
<link rel="help" href="https://drafts.fxtf.org/compositing-2/#csscompositingrules_CSS" />
|
||||
<link rel="author" title="Philip Rogers" href="mailto:pdr@chromium.org" />
|
||||
<link rel="match" href="isolation-with-html-ref.html" />
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200px" height="200px">
|
||||
<rect x="0" y="0" width="200" height="200" style="fill: yellow" />
|
||||
<foreignObject width="200" height="200">
|
||||
<div style="width: 200px; height: 200px; background: lime; mix-blend-mode: difference"></div>
|
||||
</foreignObject>
|
||||
</svg>
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<div style="width: 200px; height: 200px; background: lime; mix-blend-mode: difference"></div>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<title>foreignObject should create an isolated group for svg descendants</title>
|
||||
<meta name="assert" content="ForeignObject creates a stacking context which is an isolated group, so mix-blend-mode should not be affected by content outside the isolated group." />
|
||||
<link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#render-EstablishingStackingContex" />
|
||||
<link rel="help" href="https://drafts.fxtf.org/compositing-2/#csscompositingrules_CSS" />
|
||||
<link rel="author" title="Philip Rogers" href="mailto:pdr@chromium.org" />
|
||||
<link rel="match" href="isolation-with-svg-ref.html" />
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200px" height="200px">
|
||||
<rect x="0" y="0" width="200" height="200" style="fill: yellow" />
|
||||
<foreignObject width="200" height="200">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200px" height="200px">
|
||||
<rect x="0" y="0" width="200" height="200" style="fill: lime; mix-blend-mode: difference" />
|
||||
</svg>
|
||||
</foreignObject>
|
||||
</svg>
|
Загрузка…
Ссылка в новой задаче