mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
stylo: support all overflow values
MozReview-Commit-ID: 1iQdUDsb6u9
This commit is contained in:
parent
e3e10ada09
commit
f8e298b2b3
10 changed files with 63 additions and 81 deletions
|
@ -2150,7 +2150,7 @@ impl Fragment {
|
|||
let block_flow = flow.as_block();
|
||||
let start_margin = block_flow.fragment.margin.block_start;
|
||||
let end_margin = block_flow.fragment.margin.block_end;
|
||||
if style.get_box().overflow_y.0 == overflow_x::T::visible {
|
||||
if style.get_box().overflow_y == overflow_x::T::visible {
|
||||
if let Some(baseline_offset) = flow.baseline_offset_of_last_line_box_in_flow() {
|
||||
let ascent = baseline_offset + start_margin;
|
||||
let space_below_baseline = block_flow.fragment.border_box.size.block -
|
||||
|
@ -2491,7 +2491,7 @@ impl Fragment {
|
|||
match (self.style().get_box().position,
|
||||
self.style().get_position().z_index,
|
||||
self.style().get_box().overflow_x,
|
||||
self.style().get_box().overflow_y.0) {
|
||||
self.style().get_box().overflow_y) {
|
||||
(position::T::absolute,
|
||||
Either::Second(Auto),
|
||||
overflow_x::T::visible,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue