Skip to content

Commit

Permalink
Add docstrings to style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed May 12, 2021
1 parent d4561b1 commit fd2901c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions weasyprint/css/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ def variables(self):


class AnonymousStyle(Style):
"""Computed style used for anonymous boxes."""
def __init__(self, parent_style):
# border-*-style is none, so border-width computes to zero.
# Other than that, properties that would need computing are
Expand Down Expand Up @@ -628,6 +629,7 @@ def __missing__(self, key):


class ComputedStyle(Style):
"""Computed style used for non-anonymous boxes."""
def __init__(self, parent_style, cascaded, element, pseudo_type,
root_style, base_url):
self.specified = {}
Expand Down

0 comments on commit fd2901c

Please sign in to comment.