style: Remove overflow-block optional-paged

Removed overflow-block optional-paged value and reftesting as it was
removed from the spec in 2020: https://github.com/w3c/csswg-drafts/issues/5287

1 WPT subtest now newly passes.

WPT tests: https://wpt.fyi/results/css/mediaqueries/test_media_queries.html

Differential Revision: https://phabricator.services.mozilla.com/D178710
This commit is contained in:
CanadaHonk 2023-05-22 20:44:09 +00:00 committed by Martin Robinson
parent 8d2ae3f1c5
commit 3a51e530d2

View file

@ -331,7 +331,6 @@ fn eval_inverted_colors(
enum OverflowBlock {
None,
Scroll,
OptionalPaged,
Paged,
}
@ -351,7 +350,7 @@ fn eval_overflow_block(context: &Context, query_value: Option<OverflowBlock>) ->
};
match query_value {
OverflowBlock::None | OverflowBlock::OptionalPaged => false,
OverflowBlock::None => false,
OverflowBlock::Scroll => scrolling,
OverflowBlock::Paged => !scrolling,
}