If a magical/rare/legendy already features an elemental resistancy it can be further boosted with a value based on the numbers above -5%.
Example: A legendary metal armour that already features +15% fire resistancy can be boosted with a fire essence up to +35% (+20% = +25% usual increase per essence -5% reduction of already existing resistancy).