Bug 314085
| Summary: | mathml/relations/html5-tree/href-click-004.tentative.html is failing for annotation/annotation-xml element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Frédéric Wang Nélar <fred.wang> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eri |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 314084 | ||
| Bug Blocks: | |||
Frédéric Wang Nélar
See https://searchfox.org/wubkat/rev/68f2a0d2a5f6fc91cbfb573ccf94fceaaa2f162c/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative-expected.txt#2
This test perform a click on annotation/annotation-xml elements with a href, to check the href attribute has no effect. But the test runner is enabled to execute the click and returns a promise failure: Unhandled rejection with value: object "Error: element click intercepted error"
Note that the test uses the following rules:
annotation, annotation-xml { display: initial; }
.element { background: lightblue; padding: 50px; }
to avoid the default display: none and empty size, but that don't seem enough.
As explained in bug 314084, the annotation/annotation-xml rendering seems quite broken, and nothing will be rendered in that case.
That won't be the proper way to solve this, but it's worth mentioning that tweaking the test to set an opacity on the annotations makes them visible, and the test passes:
diff --git a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
index 764222dd1f..5e84fa85ca 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
+++ b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
@@ -13,7 +13,7 @@
<style>
annotation, annotation-xml { display: initial; }
mphantom { visibility: visible; }
- .element { background: lightblue; padding: 50px; }
+ .element { background: lightblue; padding: 50px; opacity: .9; }
</style>
</head>
<body>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |