The @scope at-rule, the successor of the deprecated HTML scoped attribute, offers an inbuilt, native browser feature for writing scoped <style> tags, according to the official specification:<div> <style> @scope { :scope { background-color: #eee; } .title { padding: 10px; background-...