Masking

From FHTML

Jump to: navigation, search

Contents

1 What's the same as html?

  • FluidHtml supports lots of different options for the clip property. But as a baseline, we do what html does:
    • auto: No clipping will be applied. This is the default value.
    • rect (top, right, bottom, left): Clips an element to the size of the box described. FluidHtml will also accept rect (with no dimensions), implying that the box will be clipped to its actual size. Conceptually, this implementation overlaps with html's overflow property, which is also supported.

1.1 clip

<style type="text/css">
    .clipped {
        x:center;
        y:center|-100;
        width:100px;
        height:100px;
        background:#F4F4F4;
        clip:rect;
    }
    .unclipped {
        x:center;
        y:center|100;
        width:100px;
        height:100px;
        background:#F4F4F4;
        clip:auto;
    }
    .childIsWider {
        y:center;
        width:200px;
        height:40px;
        background:#FF0000;
    }
</style>
<div style="box-orient:none" >
    <div class="clipped">
        <div class="childIsWider" />
    </div>
    <div class="unclipped">
        <div class="childIsWider" />
    </div>
</div>
View Example View Source

1.2 clip:rect(top, right, bottom, left)

<style type="text/css">
    .clipped {
        x:center;
        y:center|-100;
        width:100px;
        height:100px;
        background:#F4F4F4;
        clip:rect(10px, 80px, 80px, 10px);
    }
    .childIsWider {
        y:center;
        width:200px;
        height:40px;
        background:#FF0000;
    }
</style>
<div style="box-orient:none" >
    <div class="clipped">
       
    </div>
</div>
View Example View Source

2 What's extra?

2.1 clip

--MORE TO COME!

Contents

General
Javascript
Elements
Effects
Animation
Pages
Personal tools