mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: More container queries plumbing
Provide container information in computed::Context and use it to resolve the container queries. This still fails a lot of tests because we are not ensuring that layout is up-to-date when we style the container descendants, but that's expected. Differential Revision: https://phabricator.services.mozilla.com/D146478
This commit is contained in:
parent
5c2fac087f
commit
bbf10a43b8
18 changed files with 420 additions and 143 deletions
|
@ -42,13 +42,7 @@ pub struct CascadePriority {
|
|||
layer_order: LayerOrder,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn size_assert() {
|
||||
#[allow(unsafe_code)]
|
||||
unsafe {
|
||||
std::mem::transmute::<u32, CascadePriority>(0u32)
|
||||
};
|
||||
}
|
||||
const_assert_eq!(std::mem::size_of::<CascadePriority>(), std::mem::size_of::<u32>());
|
||||
|
||||
impl PartialOrd for CascadePriority {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue