-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1858468 - Don't compute custom properties twice inside links. r=d…
…shin This matches the behavior of other browsers (in fact, I filed [1] about it long time ago). This avoids a bunch of overhead in some speedometer subtests. Makes me a bit sad because I still think our approach is slightly more correct per spec, but not worth the performance cost. [1]: w3c/csswg-drafts#2263 Differential Revision: https://phabricator.services.mozilla.com/D190705 UltraBlame original commit: e136cc9893278df1df3e3b997b9e6756122b9c44
- Loading branch information
Showing
5 changed files
with
440 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
< | ||
! | ||
doctype | ||
html | ||
> | ||
< | ||
style | ||
> | ||
a | ||
{ | ||
color | ||
: | ||
green | ||
; | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
a | ||
href | ||
= | ||
" | ||
" | ||
> | ||
Which | ||
color | ||
? | ||
< | ||
/ | ||
a | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
< | ||
! | ||
doctype | ||
html | ||
> | ||
< | ||
style | ||
> | ||
a | ||
{ | ||
- | ||
- | ||
foo | ||
: | ||
green | ||
; | ||
} | ||
: | ||
visited | ||
{ | ||
- | ||
- | ||
foo | ||
: | ||
red | ||
; | ||
color | ||
: | ||
var | ||
( | ||
- | ||
- | ||
foo | ||
) | ||
; | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
a | ||
href | ||
= | ||
" | ||
visited | ||
- | ||
page | ||
. | ||
html | ||
" | ||
> | ||
Which | ||
color | ||
? | ||
< | ||
/ | ||
a | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1765,6 +1765,22 @@ | |
. | ||
svg | ||
" | ||
" | ||
= | ||
= | ||
variables | ||
- | ||
visited | ||
. | ||
html | ||
variables | ||
- | ||
visited | ||
- | ||
ref | ||
. | ||
html | ||
" | ||
] | ||
; | ||
/ | ||
|
Oops, something went wrong.