mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/CSS: Add overflow hidden to UA stylesheet for marquee element
This commit is contained in:
parent
b0e061b943
commit
b165ffc868
|
|
@ -830,6 +830,7 @@ details[open] > summary:first-of-type {
|
|||
marquee {
|
||||
display: inline-block;
|
||||
text-align: initial;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/* 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…
Reference in New Issue
Block a user