Patent attributes
Systems and methods are disclosed herein for disclosed for controlling the display of content in web-based documents based on a characteristic of a viewport used to render that content. For example, a method comprising storing a document as a data file comprising content data and storing control data as one or more control data files; applying tags to a portion of the content data according to user input; designating media query rules for each of the tags, each media query rule responsive to one or more viewport characteristics; and generating control data based, in part, on said designation, the control data comprising each of tags in association with the respectively designated media queries rules, wherein, when the output file is rendered, the at least a portion of the content data is displayed responsive to the media query rules corresponding thereto based on the tags.