Total (elastic + inelastic) differential photon-scattering cross sections have been measured for ${\mathrm{H}}_{2}$ gas over a range of $2.5\ensuremath{\le}S=(\frac{4\ensuremath{\pi}}{\ensuremath{\lambda}})sin(\frac{\ensuremath{\theta}}{2})\ensuremath{\le}6.7$ ${\mathrm{\AA{}}}^{\ensuremath{-}1}$ and for He over $3\ensuremath{\le}S\ensuremath{\le}11.2$ ${\mathrm{\AA{}}}^{\ensuremath{-}1}$, using an x-ray beam in the Stanford Synchrotron Radiation Laboratory. Absolute measured cross sections agree with theory within the probable errors. Relative cross sections (normalized to theory at large $S$) agree to better than 1% with theoretical values calculated from wave functions that include the effect of electron-electron Coulomb correlation, but the data deviate significantly from theoretical independent-particle (e.g., Hartree-Fock) results. The ratios of measured absolute He cross sections to those of ${\mathrm{H}}_{2}$, at any given $S$, also agree to better than 1% with theoretical He-to-${\mathrm{H}}_{2}$ cross-section ratios computed from correlated wave functions. It appears that photon scattering constitutes a very promising tool for probing electron correlation in light atoms and molecules. The degree of polarization of the synchrotron radiation beam has been measured by rotating the scattering plane about the beam axis; results are compared with theory.