mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix evaluation of rem inside media queries.
Also fix the tests so that they would've caught this. Bug: 1396057 Reviewed-by: Manishearth MozReview-Commit-ID: ByaR4ZA995l
This commit is contained in:
parent
a09f5208d4
commit
6747eb7f45
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ impl FontRelativeLength {
|
|||
// element, the rem units refer to the property’s initial
|
||||
// value.
|
||||
//
|
||||
let reference_size = if context.is_root_element {
|
||||
let reference_size = if context.is_root_element || context.in_media_query {
|
||||
reference_font_size
|
||||
} else {
|
||||
context.device().root_font_size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue