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

Unified Diff: sdk/lib/html/dartium/html_dartium.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/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 7b920d8c24e5bf054d98c6d2e9ff1fd389f76b96..70ec2435d5abb78bde7f495d0f4e6e925d7a2790 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -3995,12 +3995,17 @@ class CssStyleDeclaration extends NativeFieldWrapperClass1 {
}
/** 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