Inconsistent behavior of mask with display: none between SVG and HTML
Categories
(Core :: SVG, enhancement, P3)
Tracking
()
People
(Reporter: krit, Unassigned)
Details
Attachments
(1 file)
6.06 KB,
patch
|
Details | Diff | Splinter Review |
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•5 years ago
|
||
At TPAC 2019 the SVG working group decided on the following resolution:
RESOLUTION: display: none on mask/clipPath/filter element (or ancestor) should cause the graphical effect to be ignored, so there is no impact on the rendering of the SVG/HTML element the resource applies to (as if it was not specified for that element)
In other words, Gecko's behavior of hiding an HTML element if its mask is display:none is not compliant with this resolution - the element should be drawn as if no mask was specified for that element.
We should fix Gecko.
Comment 2•5 years ago
|
||
A try push for this
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e8a7ddc1bf77d9007842bb2cf64dfb25947d3fce
It fails some tests that shouldn't be failing, some tests should be changed to the new behaviour. One test fails on wr but not non-wr.
Comment 3•3 years ago
|
||
tnikkel - would you mind posting a snapshot of your patch, as an attachment here, so that we don't lose it? (I assume it'll be useful as a starting point for whoever ends up working on this.)
IIRC, the try hg-repo gets purged periodically, so comment 2 will turn into a broken link at some point. (I thought that happened relatively often, but it seems your patches from 2 years ago in comment 2 are still there, fortunately! But who knows how soon they will disappear. :))
(Also: given that we've now shipped WR and presumably fixed a bunch of bugs, I wonder if some of the issues that you hit in comment 2 may have been fixed now -- maybe the patch is trivially closer-to-being-shippable?)
Comment 4•3 years ago
|
||
(For reference: I ran across this when looking for bugs related to bug 1755678; that bug is mostly about a distinct issue, but it also touched on this behavior as part of the investigation there.)
Comment 5•3 years ago
|
||
Here's the patch from try server. I've long paged this out of my head. Not sure if it'd even be easier for me to page it back in vs someone else getting up to speed on this.
Updated•2 years ago
|
Comment 6•1 year ago
|
||
Our rendering is the same as Chrome post bug 1765202
Description
•