diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css index 18941f090fd..d88244cf59b 100644 --- a/Libraries/LibWeb/CSS/Default.css +++ b/Libraries/LibWeb/CSS/Default.css @@ -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 diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.txt b/Tests/LibWeb/Text/expected/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.txt new file mode 100644 index 00000000000..8f74d731a76 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.txt @@ -0,0 +1,6 @@ +Harness status: OK + +Found 1 tests + +1 Pass +Pass Marquee should have overflow: hidden !important in the UA stylesheet \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.html b/Tests/LibWeb/Text/input/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.html new file mode 100644 index 00000000000..6ecfb066bf0 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-overflow.html @@ -0,0 +1,18 @@ + + +Marquee forces overflow: hidden + + + +  +  +  +  + +