A method of processing video data, comprising: determining, based on a rule, whether one or more syntax elements applicable to a region of a video are included in one or more syntax structures of a bitstream of the video, wherein the one or more syntax elements are indicative of at least one quantization parameter offset to luma quantization parameter for deriving one or more quantization parameters of one or more chroma components of the region of the video, wherein the one or more syntax elements include a first syntax element used in a first coding tool in which residual samples of the one or more chroma components are coded jointly, and the first syntax element indicates the quantization parameter offset to the luma quantization parameter used for deriving one quantization parameter of the one or more chroma components of the first coding tool; and performing a conversion between the region of the video and the bitstream based on the determining; wherein the rule is based on a chroma format of the region of the video; wherein the rule indicates that the one or more syntax elements are absent in the bitstream in case the chroma format is 4:0:0, wherein the rule further indicates that a first flag indicating whether to apply the first coding tool is conditionally present, and the first flag is absent in case the chroma format is 4:0:0 and when present, the first flag is included in a sequence parameter set, and wherein the rule further indicates that a second flag indicating whether a single transform block is used to derive the residual samples for all the multiple chroma components is conditionally present and the second flag is absent in case the chroma format is 4:0:0 and when present, the second flag is included in a transform unit syntax structure. determining, based on a rule, whether one or more syntax elements applicable to a region of a video are included in one or more syntax structures of a bitstream of the video, wherein the one or more syntax elements are indicative of at least one quantization parameter offset to luma quantization parameter for deriving one or more quantization parameters of one or more chroma components of the region of the video, wherein the one or more syntax elements include a first syntax element used in a first coding tool in which residual samples of the one or more chroma components are coded jointly, and the first syntax element indicates the quantization parameter offset to the luma quantization parameter used for deriving one quantization parameter of the one or more chroma components of the first coding tool; and performing a conversion between the region of the video and the bitstream based on the determining; wherein the rule is based on a chroma format of the region of the video; wherein the rule indicates that the one or more syntax elements are absent in the bitstream in case the chroma format is 4:0:0, wherein the rule further indicates that a first flag indicating whether to apply the first coding tool is conditionally present, and the first flag is absent in case the chroma format is 4:0:0 and when present, the first flag is included in a sequence parameter set, and wherein the rule further indicates that a second flag indicating whether a single transform block is used to derive the residual samples for all the multiple chroma components is conditionally present and the second flag is absent in case the chroma format is 4:0:0 and when present, the second flag is included in a transform unit syntax structure.