mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibWeb/CSS: Add overflow hidden to UA stylesheet for marquee element
This commit is contained in:
parent
b0e061b943
commit
b165ffc868
Notes:
github-actions[bot]
2024-12-28 11:19:22 +00:00
Author: https://github.com/shannonbooth
Commit: b165ffc868
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3073
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 25 additions and 0 deletions
|
@ -830,6 +830,7 @@ details[open] > summary:first-of-type {
|
||||||
marquee {
|
marquee {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: initial;
|
text-align: initial;
|
||||||
|
overflow: hidden !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 15.5.13 The meter element
|
/* 15.5.13 The meter element
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Harness status: OK
|
||||||
|
|
||||||
|
Found 1 tests
|
||||||
|
|
||||||
|
1 Pass
|
||||||
|
Pass Marquee should have overflow: hidden !important in the UA stylesheet
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!doctype html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Marquee forces overflow: hidden</title>
|
||||||
|
<link rel="help" href="https://html.spec.whatwg.org/#the-marquee-element">
|
||||||
|
<script src="../../../../resources/testharness.js"></script>
|
||||||
|
<script src="../../../../resources/testharnessreport.js"></script>
|
||||||
|
<marquee style="overflow: visible"> </marquee>
|
||||||
|
<marquee style="overflow: scroll"> </marquee>
|
||||||
|
<marquee style="overflow: clip"> </marquee>
|
||||||
|
<marquee style="overflow: auto"> </marquee>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
test(() => {
|
||||||
|
for (let m of document.querySelectorAll("marquee")) {
|
||||||
|
assert_equals(getComputedStyle(m).overflow, "hidden", m.style);
|
||||||
|
}
|
||||||
|
}, "Marquee should have overflow: hidden !important in the UA stylesheet");
|
||||||
|
</script>
|
Loading…
Add table
Add a link
Reference in a new issue