8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cab00f commit 2db8818Copy full SHA for 2db8818
lib/src/css_box_widget.dart
@@ -683,6 +683,10 @@ class _RenderCSSBox extends RenderBox
683
extension Normalize on Dimension {
684
void normalize(double emValue) {
685
switch (this.unit) {
686
+ case Unit.rem:
687
+ // Because CSSBoxWidget doesn't have any information about any
688
+ // sort of tree structure, treat rem the same as em. The HtmlParser
689
+ // widget handles rem/em values before they get to CSSBoxWidget.
690
case Unit.em:
691
this.value *= emValue;
692
this.unit = Unit.px;
0 commit comments