mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Unit test for Anchor element covered by pseudo-element
This commit is contained in:
parent
836955ef57
commit
7c85e57c32
Notes:
github-actions[bot]
2025-06-09 15:21:53 +00:00
Author: https://github.com/AmusedNetwork
Commit: 7c85e57c32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5025
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 33 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
PASS
|
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<script src="include.js"></script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<a class="link" href="#" onclick="this.textContent = 'PASS'">FAIL</a>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
test(() => {
|
||||||
|
internals.click(50, 60);
|
||||||
|
|
||||||
|
let linkText = document.querySelector(".link").textContent;
|
||||||
|
|
||||||
|
println(linkText);
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue