Files
tubestation/layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-021.html
Ting-Yu Lin 6cf81bf416 Bug 1326409 Part 5 - Implement shape-outside: polygon(). r=dholbert
The <fill-rule> in the polygon() syntax is not handled because it doesn't
matter to shape-outside at all.

The reftests are numbered from 018 to avoid conflict with the w3c upstream
ones according to this list.
https://test.csswg.org/harness/results/css-shapes-1_dev/grouped/

Reftest 018 to 025 are under various writing-modes, 026 to 029 are testing
empty float area, 030 to 031 are testing polygon containing horizontal
lines.

MozReview-Commit-ID: FPUbMdZsvu6
2017-03-13 12:03:40 +08:00

56 lines
1.9 KiB
HTML

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<meta charset="utf-8">
<title>CSS Shape Test: vertical-rl, float right, polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#supported-basic-shapes">
<link rel="match" href="shape-outside-polygon-021-ref.html">
<meta name="flags" content="">
<meta name="assert" content="Test the boxes are wrapping around the right float shape defined by the polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box value under vertical-rl writing-mode.">
<style>
.container {
writing-mode: vertical-rl;
direction: rtl;
inline-size: 200px;
line-height: 0;
}
.shape {
float: right;
shape-outside: polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box;
clip-path: polygon(60px 20px, 100px 60px, 20px 60px, 60px 100px) border-box;
box-sizing: content-box;
block-size: 40px;
inline-size: 40px;
padding: 20px;
margin: 20px;
border: 20px solid lightgreen;
background-color: orange;
}
.box {
display: inline-block;
inline-size: 80px;
background-color: blue;
}
.long {
inline-size: 200px;
}
</style>
<body class="container">
<div class="shape"></div>
<div class="long box" style="block-size: 30px;"></div> <!-- Fill the margin and partial border space -->
<div class="box" style="block-size: 30px;"></div>
<div class="box" style="block-size: 20px;"></div>
<div class="box" style="block-size: 20px;"></div>
<div class="box" style="block-size: 30px;"></div>
<div class="long box" style="block-size: 30px;"></div> <!-- Fill the margin and partial border space -->
</body>
</html>