Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 19853002: Only Firefox needs the vendor prefix. All other browsers have both (webkit browsers) or the unprefi… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 62da3501d536a54e0f5ff98e78e2730b45e519ba..6f3877a1728c677202539b20c981e38f14c33b50 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -3519,12 +3519,17 @@ class CssStyleDeclaration extends Interceptor native "CSSStyleDeclaration,MSStyl
}
/** Gets the value of "box-sizing" */
- String get boxSizing =>
- getPropertyValue('${Device.cssPrefix}box-sizing');
+ String get boxSizing => Device.isFirefox ?
+ getPropertyValue('${Device.cssPrefix}box-sizing') :
+ getPropertyValue('box-sizing');
/** Sets the value of "box-sizing" */
void set boxSizing(String value) {
- setProperty('${Device.cssPrefix}box-sizing', value, '');
+ if (Device.isFirefox) {
+ setProperty('${Device.cssPrefix}box-sizing', value, '');
+ } else {
+ setProperty('box-sizing', value, '');
+ }
}
/** Gets the value of "caption-side" */

Powered by Google App Engine
This is Rietveld 408576698