mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Split in_media_query and in_container_query bits from computed::Context
No behavior change, but it makes more sense this way :) Differential Revision: https://phabricator.services.mozilla.com/D159851
This commit is contained in:
parent
d21aa99252
commit
bfa293c5c5
2 changed files with 16 additions and 4 deletions
|
@ -264,7 +264,7 @@ impl FontRelativeLength {
|
|||
// element, the rem units refer to the property's initial
|
||||
// value.
|
||||
//
|
||||
let reference_size = if context.builder.is_root_element || context.in_media_query {
|
||||
let reference_size = if context.builder.is_root_element || context.in_media_or_container_query() {
|
||||
reference_font_size
|
||||
} else {
|
||||
context.device().root_font_size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue