mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Add a style flag for the root element style.
This is needed to make the root element not a containing block in presence of filters or what not. Differential Revision: https://phabricator.services.mozilla.com/D61167
This commit is contained in:
parent
f426b644ca
commit
16fd7cad0c
13 changed files with 37 additions and 46 deletions
|
@ -596,7 +596,7 @@ impl ToComputedValue for TextAlign {
|
|||
// In that case, the default behavior here will set it to left,
|
||||
// but we want to set it to right -- instead set it to the default (`start`),
|
||||
// which will do the right thing in this case (but not the general case)
|
||||
if _context.is_root_element {
|
||||
if _context.builder.is_root_element {
|
||||
return TextAlignKeyword::Start;
|
||||
}
|
||||
let parent = _context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue