Skip to content

[css-masking-1] Replace <geometry-box> with <coord-box> for mask shorthand property. #552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions css-masking-1/Overview.bs
Original file line number Diff line number Diff line change
@@ -865,17 +865,17 @@ Animation type: see individual properties
<<mask-reference>> ||
<<position>> [ / <<bg-size>> ]? ||
<<repeat-style>> ||
<<geometry-box>> ||
[ <<geometry-box>> | no-clip ] ||
<<coord-box>> ||
[ <<coord-box>> | no-clip ] ||
<<compositing-operator>> ||
<<masking-mode>>
</pre>

If one <<geometry-box>> value and the ''no-clip'' keyword are present then <<geometry-box>> sets 'mask-origin' and ''no-clip'' sets 'mask-clip' to that value.
If one <<coord-box>> value and the ''no-clip'' keyword are present then <<coord-box>> sets 'mask-origin' and ''no-clip'' sets 'mask-clip' to that value.

If one <<geometry-box>> value and no ''no-clip'' keyword are present then <<geometry-box>> sets both 'mask-origin' and 'mask-clip' to that value.
If one <<coord-box>> value and no ''no-clip'' keyword are present then <<coord-box>> sets both 'mask-origin' and 'mask-clip' to that value.

If two <<geometry-box>> values are present, then the first sets 'mask-origin' and the second 'mask-clip'.
If two <<coord-box>> values are present, then the first sets 'mask-origin' and the second 'mask-clip'.

The <a>used value</a> of the properties 'mask-repeat', 'mask-position', 'mask-clip', 'mask-origin' and 'mask-size' must have no effect if <<mask-reference>> references a <a element>mask</a> element. In this case the element defines position, sizing and clipping of the <a>mask layer image</a>.