 Chromium Code Reviews
 Chromium Code Reviews Issue 216803002:
  Implement all shorthand property.  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk
    
  
    Issue 216803002:
  Implement all shorthand property.  (Closed) 
  Base URL: svn://svn.chromium.org/blink/trunk| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 
esprehn
2014/05/30 00:59:22
We generally leave off the html, head and body.
 
tasak
2014/06/04 09:37:40
Done.
 | |
| 4 <style> | |
| 5 #target1 { color: red; background-color: currentColor; } | |
| 6 #target1 { all: initial; } | |
| 7 #target1 { color: green; } | |
| 8 | |
| 9 #parent { color: green; } | |
| 10 #target2 { color: red; background-color: currentColor; } | |
| 11 #target2 { all: inherit; } | |
| 12 | |
| 13 #target3 { color: green !important; } | |
| 14 #target3 { all: initial; } | |
| 15 | |
| 16 #target4 { color: red !important; } | |
| 17 #target4 { all: initial !important; } | |
| 18 #target4 { background-color: red; } | |
| 19 | |
| 20 #target5 { all: initial !important; } | |
| 21 #target5 { background-color: red; } | |
| 22 #target5 { color: green !important; } | |
| 23 | |
| 24 #target6 { all: initial !important; } | |
| 25 #target6 { color: red !important; } | |
| 26 #target6 { all: initial !important; } | |
| 27 | |
| 28 #target7 { all: initial !important; } | |
| 29 #target7 { direction: rtl; } | |
| 30 | |
| 31 #target8 { all: initial !important; } | |
| 32 #target8 { direction: rtl !important; } | |
| 33 #target8 { all: initial !important; } | |
| 34 | |
| 35 #parent9 { color: green; } | |
| 36 #target9 { all: unset; } | |
| 37 </style> | |
| 38 </head> | |
| 39 <body> | |
| 40 <!-- Test for crbug.com/172051: all shorthand property --> | |
| 41 <div id='target1'>green color, no background-color</div> | |
| 42 | |
| 43 <div id='parent'> | |
| 44 <div id='target2'>green color, no background-color</div> | |
| 45 </div> | |
| 46 | |
| 47 <div id='target3'>green color</div> | |
| 48 | |
| 49 <div id='target4'>not red color</div> | |
| 50 | |
| 51 <div id='target5'>green color, no background-color</div> | |
| 52 | |
| 53 <div id='target6'>not red color</div> | |
| 54 | |
| 55 <div id='target7'>direction is rtl</div> | |
| 56 | |
| 57 <div id='target8'>direction is rtl</div> | |
| 58 | |
| 59 <div id='parent9'> | |
| 60 <div id='target9'>green color</div> | |
| 61 </div> | |
| 62 </body> | |
| 63 </html> | |
| 64 | |
| OLD | NEW |