gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.51k stars 373 forks source link

Support for CSS3 unit #8435

Open dankurka opened 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 8450

Please support for CSS3 unit: rem, vh, vw, ... in com.google.gwt.dom.client.Style.Unit

Found in GWT Release: 2.5.1

Encountered on OS / Browser (e.g. WinXP, IE9, FF10):

Detailed description (please be as specific as possible):

Workaround if you have one:

Links to relevant GWT Developer Forum posts:

Link to patch posted at http://gwt-review.googlesource.com

Reported by tvhnet on 2013-11-17 04:57:08

dankurka commented 9 years ago
NOTE: minus sign removed from negative rem values;
e.g.
.demoTile {
  right: -1.063rem;
}

becomes
.demoTile {
  right: 1.063rem;
}

Reported by jaworowski.piotr on 2013-11-28 13:41:58

dankurka commented 9 years ago
There's a workaround for the issue with minus sign being removed:

.demoTile {
  right: literal("-1.063rem");
}

Reported by jaworowski.piotr on 2013-12-02 16:02:05