| Summary: | SVG text is always underlined when SVG is wrapped by an A element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2022-11-30 15:46:27 PST
Note - this is not 1:1 because this commit changed the code: https://github.com/WebKit/WebKit/commit/af6b61d40471b08d5d6c1acb90c5d533d92805d8 Fixed it locally by adding following:
in StyleAdjuster.cpp
static bool isOutermostSVGElement (const Element* element)
{
return element && element->isSVGElement() && downcast<SVGElement>(*element).isOutermostSVGSVGElement();
}
and
following in 'shouldInheritTextDecorationsInEffect':
if (isOutermostSVGElement(element))
return false;
Committed 264894@main (b3a3c589507e): <https://commits.webkit.org/264894@main> Reviewed commits have been landed. Closing PR #14681 and removing active labels. |