mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
No bug - Cherry-pick changes from Servo PR #22825. r=npotb
This commit is contained in:
parent
29b0cd4d4c
commit
9dbc608ab3
@ -34,6 +34,17 @@ ${helpers.single_keyword(
|
||||
spec="Internal (not web-exposed)",
|
||||
)}
|
||||
|
||||
// An internal-only property for elements in a top layer
|
||||
// https://fullscreen.spec.whatwg.org/#top-layer
|
||||
${helpers.single_keyword(
|
||||
"-servo-top-layer",
|
||||
"none top",
|
||||
products="servo",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
spec="Internal (not web-exposed)",
|
||||
)}
|
||||
|
||||
${helpers.single_keyword(
|
||||
"position",
|
||||
"static absolute relative fixed sticky",
|
||||
|
@ -3626,11 +3626,12 @@ impl<'a> StyleBuilder<'a> {
|
||||
Position::Absolute | Position::Fixed)
|
||||
}
|
||||
|
||||
/// Whether this style has a top-layer style. That's implemented in Gecko
|
||||
/// via the -moz-top-layer property, but servo doesn't have any concept of a
|
||||
/// top layer (yet, it's needed for fullscreen).
|
||||
/// Whether this style has a top-layer style.
|
||||
#[cfg(feature = "servo")]
|
||||
pub fn in_top_layer(&self) -> bool { false }
|
||||
pub fn in_top_layer(&self) -> bool {
|
||||
matches!(self.get_box().clone__servo_top_layer(),
|
||||
longhands::_servo_top_layer::computed_value::T::Top)
|
||||
}
|
||||
|
||||
/// Whether this style has a top-layer style.
|
||||
#[cfg(feature = "gecko")]
|
||||
|
Loading…
Reference in New Issue
Block a user