mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Implement clip
per CSS 2.1 § 11.1.2.
Only the recommended, comma-separated syntax is supported.
This commit is contained in:
parent
4ccecd8dca
commit
6b28965b94
11 changed files with 261 additions and 30 deletions
|
@ -1774,8 +1774,8 @@ impl Flow for BlockFlow {
|
|||
} else {
|
||||
self.base.stacking_relative_position
|
||||
};
|
||||
let clip_rect = self.fragment.clip_rect_for_children(self.base.clip_rect,
|
||||
origin_for_children);
|
||||
let clip_rect = self.fragment.clip_rect_for_children(&self.base.clip_rect,
|
||||
&origin_for_children);
|
||||
|
||||
// Process children.
|
||||
let writing_mode = self.base.writing_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue