Commit e20438c5 authored by Mario Sanchez Prada's avatar Mario Sanchez Prada Committed by Commit Bot

[css-filters] Migrate effect-reference-obb-dimensions.htm 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.

Bug: 1063749
Change-Id: I12b4ceab21c9d0e69847768716e8027224bc726f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139821Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#757496}
parent ccca0b41
<!DOCTYPE html>
<style>
body {
margin: 0;
padding: 0;
}
#target {
position: absolute;
width: 100px;
height: 100px;
background-color: green;
filter: url('#bboxOffset');
}
</style>
<div id="target"></div>
<svg height="0">
<filter id="bboxOffset" primitiveUnits="objectBoundingBox" x="0" y="0" width="1.25" height="1.25">
<feOffset dx="0.2" dy="0.2"/>
</filter>
</svg>
<!DOCTYPE html>
<title>CSS Filters: objectBoundingBox type of primitiveUnits in SVG filters</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#InterfaceSVGFilterElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#attr-valuedef-primitiveunits-objectboundingbox">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=532938">
<link rel="match" href="reference/effect-reference-obb-dimensions-ref.html">
<meta name="assert" content="Check that primitiveUnits of type objectBoundingBox get properly applied in SVG filter primitives."/>
<style>
body {
margin: 0;
padding: 0;
}
#target {
position: absolute;
width: 100px;
height: 100px;
background-color: green;
filter: url('#bboxOffset');
}
</style>
<div id="target"></div>
<svg height="0">
<filter id="bboxOffset" primitiveUnits="objectBoundingBox" x="0" y="0" width="1.25" height="1.25">
<feOffset dx="0.2" dy="0.2"/>
</filter>
</svg>
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