diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-12-07 22:59:38 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-12-15 17:41:44 -0800 |
commit | 14bafb11bec973cd1362ff38a8e4aa2385c6ff37 (patch) | |
tree | e1dd41c6f1a2829e2be800cb27e7bdd4ee5f0a4f /components/style/selector_matching.rs | |
parent | 10f1ed5e311e7092d3e24b58c4960f5e8a511ac0 (diff) | |
download | servo-14bafb11bec973cd1362ff38a8e4aa2385c6ff37.tar.gz servo-14bafb11bec973cd1362ff38a8e4aa2385c6ff37.zip |
style: Parse the legacy `bgcolor` attribute per the HTML5 specification.
Additionally, this patch cleans up some miscellaneous formatting issues.
Diffstat (limited to 'components/style/selector_matching.rs')
-rw-r--r-- | components/style/selector_matching.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index b1fbd5042e8..12df5e2f35c 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -802,8 +802,8 @@ pub fn common_style_affecting_attributes() -> [CommonStyleAffectingAttributeInfo /// Attributes that, if present, disable style sharing. All legacy HTML attributes must be in /// either this list or `common_style_affecting_attributes`. See the comment in /// `synthesize_presentational_hints_for_legacy_attributes`. -pub fn rare_style_affecting_attributes() -> [Atom, ..1] { - [ atom!("border") ] +pub fn rare_style_affecting_attributes() -> [Atom, ..2] { + [ atom!("bgcolor"), atom!("border") ] } /// Determines whether the given element matches the given single selector. |