mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Move Position into its own values module
This commit is contained in:
parent
88c1a67d89
commit
44e33bcdc5
8 changed files with 215 additions and 134 deletions
|
@ -520,9 +520,9 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
};
|
||||
|
||||
// Use `background-position` to get the offset.
|
||||
let horizontal_position = model::specified(background.background_position.horizontal,
|
||||
let horizontal_position = model::specified(background.background_position.0.horizontal,
|
||||
bounds.size.width - image_size.width);
|
||||
let vertical_position = model::specified(background.background_position.vertical,
|
||||
let vertical_position = model::specified(background.background_position.0.vertical,
|
||||
bounds.size.height - image_size.height);
|
||||
|
||||
let abs_x = border.left + virtual_origin_x + horizontal_position + origin_x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue