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 bce44d4 commit 3defeecCopy full SHA for 3defeec
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