| Summary: | dominant-baseline in an SVG <text> tag is not inherited by its children <tspan> tags | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | REOPENED --- | ||||||||
| Severity: | Normal | CC: | ahmad.saleem792, commit-queue, gusanmaz, oliver, webkit-bug-importer, yan, zimmermann | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=259286 | ||||||||
| Bug Depends on: | 259335 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Said Abou-Hallawa
2014-12-04 09:51:47 PST
Created attachment 242573 [details]
result
Created attachment 242574 [details]
expected
dominant-baseline should be inherited in SVG 2, so this is an SVG 2 improvement, which would be welcome in webkit. It *is* inherited in the latest version of Chrome and Firefox. See https://www.fxsitecompat.dev/en-CA/docs/2019/dominant-baseline-is-now-inherited-from-its-parent-element/ https://src.chromium.org/viewvc/blink?view=revision&revision=199970 ^ This makes us pass following test case - https://jsfiddle.net/azLe745x/ but it regresses following: imported/w3c/web-platform-tests/svg/styling/presentation-attributes-irrelevant.html imported/w3c/web-platform-tests/svg/styling/presentation-attributes-relevant.html imported/w3c/web-platform-tests/svg/styling/presentation-attributes-unknown.html With following failing: dominant-baseline presentation attribute supported on a irrelevant element dominant-baseline presentation attribute supported on a relevant element dominant-baseline presentation attribute supported on an unknown SVG element (In reply to Ahmad Saleem from comment #5) > https://src.chromium.org/viewvc/blink?view=revision&revision=199970 > > ^ This makes us pass following test case - https://jsfiddle.net/azLe745x/ > > but it regresses following: > > imported/w3c/web-platform-tests/svg/styling/presentation-attributes- > irrelevant.html > imported/w3c/web-platform-tests/svg/styling/presentation-attributes-relevant. > html > imported/w3c/web-platform-tests/svg/styling/presentation-attributes-unknown. > html > > With following failing: > > dominant-baseline presentation attribute supported on a irrelevant element > dominant-baseline presentation attribute supported on a relevant element > dominant-baseline presentation attribute supported on an unknown SVG element Running these tests directly from WPT on Minibrowser where I have Blink patch merged does not show them failing when I do merge. :-( I do have other SVG patches, which can mess with my internal build, so I think I can try doing draft PR. Any suggestion? Committed 265525@main (0ed9d940afc3): <https://commits.webkit.org/265525@main> Reviewed commits have been landed. Closing PR #14833 and removing active labels. *** Bug 249085 has been marked as a duplicate of this bug. *** *** Bug 217564 has been marked as a duplicate of this bug. *** Re-opened since this is blocked by bug 259335 |