tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8de7716133cef079f5739b084fdbdf4f70e9800c
parent 7ecbfc2338c7d15a6031d4f721b48f3725348054
Author: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com>
Date:   Wed, 15 Oct 2025 08:57:37 +0000

Bug 1958779 [wpt PR 51873] - Add overflow default property for replaced element, a=testonly

Automatic update from web-platform-tests
Add overflow default property for replaced element

Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com>

--

wpt-commits: c076f54596da2d4baf9b88b87ae00238f084bf4b
wpt-pr: 51873

Diffstat:
Atesting/web-platform/tests/css/css-overflow/overflow-replaced-element-002-ref.html | 21+++++++++++++++++++++
Atesting/web-platform/tests/css/css-overflow/overflow-replaced-element-002.html | 20++++++++++++++++++++
2 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-overflow/overflow-replaced-element-002-ref.html b/testing/web-platform/tests/css/css-overflow/overflow-replaced-element-002-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#overflow-control"> +<link rel="author" title="Kenzie Raditya Tirtarahardja" href="mailto:kenzieradityatirtarahardja.18@gmail.com"> +<title> Host languages should define UA style sheet rules that apply a default value of clip to replaced elements and set their overflow-clip-margin to content-box.</title> +<style> + img, iframe, video, embed { + border: 4px solid red; + border-radius: 30px; + width: 400px; + height: 300px; + overflow: clip; + overflow-clip-margin: content-box; + } +</style> +<iframe srcdoc="&lt;style&gt; html { background-color: green; } &lt;style&gt;"></iframe> +<img src="/media/1x1-green.png" /> +<video controls> + <source src="/media/2x2-green.mp4" type=video/mp4"> +</video> +<embed type="image/png" src="/media/1x1-green.png"/> diff --git a/testing/web-platform/tests/css/css-overflow/overflow-replaced-element-002.html b/testing/web-platform/tests/css/css-overflow/overflow-replaced-element-002.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<meta charset="UTF-8"> +<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#overflow-control"> +<link rel="author" title="Kenzie Raditya Tirtarahardja" href="mailto:kenzieradityatirtarahardja.18@gmail.com"> +<link rel="match" href="overflow-replaced-element-002-ref.html"> +<title> Host languages should define UA style sheet rules that apply a default value of clip to replaced elements and set their overflow-clip-margin to content-box.</title> +<style> + img, iframe, video, embed { + border: 4px solid red; + border-radius: 30px; + width: 400px; + height: 300px; + } +</style> +<iframe srcdoc="&lt;style&gt; html { background-color: green; } &lt;style&gt;"></iframe> +<img src="/media/1x1-green.png" /> +<video controls> + <source src="/media/2x2-green.mp4" type=video/mp4"> +</video> +<embed type="image/png" src="/media/1x1-green.png"/>