Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0036710 | Openbravo ERP | 00. Application dictionary | public | 2017-08-24 11:13 | 2017-09-21 16:49 | 
  | 
| Reporter | dbaz |   | 
| Assigned To | dbaz |   | 
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version |  | Fixed in Version | 3.0PR17Q4 |   | 
| Merge Request Status |  | 
| Review Assigned To | caristu | 
| OBNetwork customer | No | 
| Web browser |  | 
| Modules | Core | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0036710: CSSMinimizer does not work well with "background-size" property | 
| Description | CSSMinimizer does not work well with "background-size" property 
 
This property can have up two arguments (width and height) 
https://www.w3schools.com/cssref/css3_pr_background-size.asp [^] 
 
The default value is "auto". CSSMinimizer has a feature to remove duplicated parameters if exist. This works ok with most of the properties, e.g. "margin", where "100% 100%" or "100% 100% 100% 100%" can be simplified to just "100%", but in the case of "background-size", having only one parameter does not assume that the other one has the same value, so this simplification cannot be performed, and all the parameters should be declared in a explicit way (otherwise, the missing one will adopt the default 'auto' value). | 
| Steps To Reproduce | Include in any CSS loaded within the application. 
background-size: 100% 100%; 
 
With the modules NOT in development, notice that the compressed CSS has only "background-size: 100%;". (As explained before, this simplification is equivalent to "background-size 100% auto") | 
| Proposed Solution | Avoid the function "simplifyParameters" of CSSMinimizer be executed if the property is "background-size". | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to  | feature request  | 0036014 |   | new  | jorge-garcia  | Retail Modules  | Include source maps for our javascript files  |  | related to  | defect  | 0036708 |   | closed  | dbaz  | Openbravo ERP  | CSSMinimizer does not work well with "transform-origin" property  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2017-08-24 11:13 | dbaz | New Issue |  | 
| 2017-08-24 11:13 | dbaz | Assigned To |  => caristu | 
| 2017-08-24 11:13 | dbaz | OBNetwork customer |  => No | 
| 2017-08-24 11:13 | dbaz | Modules |  => Core | 
| 2017-08-24 11:13 | dbaz | Triggers an Emergency Pack |  => No | 
| 2017-08-24 11:13 | dbaz | Issue generated from | 0036708 | 
| 2017-08-24 11:27 | dbaz | Assigned To | caristu => dbaz | 
| 2017-08-24 11:27 | dbaz | Review Assigned To |  => caristu | 
| 2017-08-24 11:27 | dbaz | Relationship added | related to 0036708 | 
| 2017-08-24 11:29 | hgbot | Checkin |  | 
| 2017-08-24 11:29 | hgbot | Note Added: 0098628 |  | 
| 2017-08-24 11:29 | hgbot | Status | new => resolved | 
| 2017-08-24 11:29 | hgbot | Resolution | open => fixed | 
| 2017-08-24 11:29 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/966241a1d691d0f5d12aa1ecc6e8dac26552f368 [^] | 
| 2017-08-24 12:03 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15695#r15695 | 
| 2017-08-24 12:18 | caristu | Note Added: 0098630 |  | 
| 2017-08-24 12:20 | caristu | Note Edited: 0098630 | bug_revision_view_page.php?bugnote_id=0098630#r15697 | 
| 2017-08-24 12:32 | caristu | Proposed Solution updated |  | 
| 2017-08-24 12:34 | caristu | Note Added: 0098631 |  | 
| 2017-08-24 12:34 | caristu | Status | resolved => closed | 
| 2017-08-24 12:34 | caristu | Fixed in Version |  => 3.0PR17Q4 | 
| 2017-08-24 12:34 | caristu | Note Edited: 0098631 | bug_revision_view_page.php?bugnote_id=0098631#r15702 | 
| 2017-08-24 12:35 | caristu | Proposed Solution updated |  | 
| 2017-08-28 09:56 | alostale | Relationship added | related to 0036014 | 
| 2017-09-21 16:49 | hudsonbot | Checkin |  | 
| 2017-09-21 16:49 | hudsonbot | Note Added: 0099323 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0098628)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2017-08-24 11:29   
							 | 
		 
		 
	 | 
	
		
		
			
				Repository: erp/devel/pi 
Changeset: 966241a1d691d0f5d12aa1ecc6e8dac26552f368 
Author: David Baz Fayos <david.baz <at> openbravo.com> 
Date: Thu Aug 24 11:28:37 2017 +0200 
URL: http://code.openbravo.com/erp/devel/pi/rev/966241a1d691d0f5d12aa1ecc6e8dac26552f368 [^] 
 
Fixed issue 36710: 'background-size' css property now is properly minimized 
 
--- 
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/CSSMinimizer.java 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	
		
		
			| 
				(0098630)
			 | 
		 
		
			| 
				caristu   
			 | 
		 
		
			
				2017-08-24 12:18   
				 (edited on: 2017-08-24 12:20)			 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				Code reviewed + tested OK. 
 
			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 |