GLSL ES max/min() for genType ambiguity

According to 8.3 in the specification, min() and max() functions should return results based on relational operations, y < x or y > x. As they support genType for both operands, it supposedly require >, < operators for vector types, which I don’t think allowed by the spec.

I see many shader codes that use min()/max() for picking component-wise extreme values, but wonder if it is standard compliant.

Did I miss something? Maybe more precise note about genType in the spec would be appreciated.

The spec is actually quite clear. At the top of section 8.3 it says: “These all operate component-wise. The description is per component.”