Commit 9b768ad8 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

[css-filters] Migrate absolute-under-clip-under-filter.html to WPT

Migrate this test out of third_party/blink/web_tests/css3/filters
and into the WPT-specific directory, adding links to the relevant
specs and a test assertion describing its purpose, and renames it
to clip-under-filter-001.html.

Bug: 1063749
Change-Id: I8f54983f67fe4249f2d73339ec4d5ceaa432999b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2141497
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#757820}
parent 6be65ad3
<!DOCTYPE html> <!DOCTYPE html>
Passes if there is a blurred rectangle, left half blue and right half green. <title>CSS Filters: Clips on descendants of filter elements are applied</title>
<link rel="author" title="Xianzhu Wang" href="wangxianzhu@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-blur">
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#overflow-properties">
<link rel="help" href="https://crbug.com/809102">
<link rel="match" href="reference/clip-under-filter-001-ref.html">
<meta name="assert" content="Check that there is a blurred square, left half blue and right half green."/>
<div style="filter: blur(10px)"> <div style="filter: blur(10px)">
<div style="position: relative; width: 100px; height: 100px; background: blue; overflow: hidden"> <div style="position: relative; width: 100px; height: 100px; background: blue; overflow: hidden">
<div style="position: absolute; width: 100px; height: 100px; right: -50px; background: green"></div> <div style="position: absolute; width: 100px; height: 100px; right: -50px; background: green"></div>
......
<!DOCTYPE html> <!DOCTYPE html>
Passes if there is a blurred rectangle, left half blue and right half green.
<div style="filter: blur(10px)"> <div style="filter: blur(10px)">
<div style="width: 100px; height: 100px; background: blue"> <div style="width: 100px; height: 100px; background: blue">
<div style="position: relative; left: 50px; width: 50px; height: 100px; background: green"></div> <div style="position: relative; left: 50px; width: 50px; height: 100px; background: green"></div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment