forked from mirrors/gecko-dev
Bug 1891210 - Make line-clamp on blocks work in chrome contexts. r=dholbert
This flag is tested separately, I don't think this deserves its own test, probably... Differential Revision: https://phabricator.services.mozilla.com/D207342
This commit is contained in:
parent
c3fc8ade58
commit
7a79e1e1d3
1 changed files with 2 additions and 1 deletions
|
|
@ -1186,7 +1186,8 @@ static bool IsLineClampRoot(const nsBlockFrame* aFrame) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (StaticPrefs::layout_css_webkit_line_clamp_block_enabled()) {
|
||||
if (StaticPrefs::layout_css_webkit_line_clamp_block_enabled() ||
|
||||
aFrame->PresContext()->Document()->ChromeRulesEnabled()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue