Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Ignore custom fonts applied to pseudo elements #442

Merged
merged 1 commit into from
Jan 3, 2013

Conversation

mhoran
Copy link
Collaborator

@mhoran mhoran commented Jan 1, 2013

WebPage::setUserStylesheet prevents Web Fonts from loading when styles
are applied directly to elements, however if the styles are applied to
pseudo elements, the override does not apply. This leads to crashes on
Mac OS X, likely due to https://bugs.webkit.org/show_bug.cgi?id=61031.

Fixes #181.

WebPage::setUserStylesheet prevents Web Fonts from loading when styles
are applied directly to elements, however if the styles are applied to
pseudo elements, the override does not apply. This leads to crashes on
Mac OS X, likely due to https://bugs.webkit.org/show_bug.cgi?id=61031.
@mhoran
Copy link
Collaborator Author

mhoran commented Jan 2, 2013

Updated to apply to all pseudo elements, not just before and after.

@mhoran mhoran merged commit 11c596f into thoughtbot:master Jan 3, 2013
@mhoran mhoran deleted the fix-font-awesome branch January 3, 2013 05:32
@@ -1326,6 +1332,38 @@ def make_the_server_go_away
SCRIPT
font_family.should == "Arial"
end

it "ignores custom fonts before an element" do
font_family = driver.evaluate_script(<<-SCRIPT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some duplication in these examples. You could extract a helper method to get the computed style; I think the only variation between the examples is the pseudo-selector (before, after, etc).

@panozzaj panozzaj mentioned this pull request Jan 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I still get WebkitNoResponseError
2 participants