[wpt-sync] Sync PR 39338 - Use the initial style for resolving if nothing better is found
Categories
(Core :: Web Painting, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox114 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 39338 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/39338
Details from upstream follow.
Fredrik Söderquist <fs@opera.com> wrote:
Use the initial style for resolving if nothing better is found
We need a ComputedStyle to be able to resolve from a SVGLength (really:
a CSSPrimitiveValue) to a Length. Previously[1] we could resolve
absolute units since that did require any (style) context. By providing
the initial computed style in the cases where we fail to find one by
other means, we will manage to resolve a value. This will also mean that
certain units, like font-relative ones, will start resolving based on
the initial computed style.In the specific case we would reject the filter as invalid because the
filter region would resolve to an empty rectangle. This happens to work
for HTML content, because there we ignore this condition.[1] Before 25aa3b1a70b4c45070f70e5e2ea0e26e01697c49
Bug: 1429510
Change-Id: I9bb755ede064aa902ff7334356cc6e0660d25474Reviewed-on: https://chromium-review.googlesource.com/4394132
WPT-Export-Revision: debacae32a113252df010e6a7765dfa0608674ed
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/filter-effects/svg-external-filter-resource.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c9b70be1362d
https://hg.mozilla.org/mozilla-central/rev/9c509fc9d0f1
Description
•