Commit f6af2461 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

[css-masking] Migrate clip-path-reference-box-1 to WPT

Migrate this test out of third_party/blink/web_tests/css3/masking/ and
into the WPT-specific directory, adding links to the relevant specs and
a test assertion describing its purpose.

Bug: 1063749
Change-Id: I02f8b56439403ebb0c0f70743649434816b99fc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142116Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758046}
parent 744d87ce
<!DOCTYPE html>
<style>
.clipped {
width: 100px;
height: 200px;
background-color: green;
-webkit-clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);
clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);
box-shadow: 100px 0px red;
}
</style>
<div class="clipped"></div>
<!DOCTYPE html>
<title>CSS Masking: clip path reference box with box-shadow</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=418484">
<link rel="match" href="reference/clip-path-reference-box-001-ref.html">
<meta name="assert" content="Check that the 'clip-path' property uses the border box as the reference box.">
<style>
.clipped {
width: 100px;
height: 200px;
background-color: green;
clip-path: polygon(0% 0%,100% 0%,100% 50%,0% 50%);
box-shadow: 100px 0px red;
}
</style>
<div class="clipped"></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